/**
 * QuickSave CSS
 * Styling for save buttons and saved items list
 */

/* Save Button Container */
.quicksave-container {
    text-align: left;
    position: fixed !important;
    bottom: 100px;
    right: 25px;
    z-index: 1;
    transition: none;
}

.quicksave-container.quicksave-manual {
    margin: 10px 0;
    display: inline-block;
}

/* Save Button */
.quicksave-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--e-global-color-primary);
    color: #ffffff;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 48px;
    width: 48px;
    justify-content: center;
}

.quicksave-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quicksave-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quicksave-btn.saved {
    background: #f5f5f5;
    color: #ffffff;
}

.quicksave-btn.saved:hover {
    background: #f5f5f5;
}

.quicksave-icon {
    font-size: 16px;
    line-height: 1;
}

.quicksave-text {
    position: absolute;
    right: 100%;
    top: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: -3px 55px 15px 0px rgba(0, 0, 0, 0.00), -2px 35px 14px 0px rgba(0, 0, 0, 0.02), -1px 20px 12px 0px rgba(0, 0, 0, 0.06), 0px 9px 9px 0px rgba(0, 0, 0, 0.10), 0px 2px 5px 0px rgba(0, 0, 0, 0.12);
    color: var(--e-global-color-ed08105);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    font-family: var(--e-global-typography-a779c3c-font-family), Sans-serif;
    padding: 5px 20px;
    margin-right: 10px;
    border-radius: 18px;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.quicksave-btn:hover .quicksave-text {
    opacity: 1;
    visibility: visible;
}

.hover-icon.gptSidekick-main-save-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
}

button.quicksave-btn:focus {
    background-color: #ffffff;
    color: #030303;
}

button.quicksave-btn.saved:focus {
    background-color: #ccc;
    color: #ffffff;
}

.quicksave-btn:hover .hover-icon.gptSidekick-main-save-img,
.quicksave-btn.saved .hover-icon.gptSidekick-main-save-img {
    opacity: 1;
    visibility: visible;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{

     background-color: transparent;
    color: #000000;
}

.quicksave-btn:hover .regular-icon.gptSidekick-main-save-img,
.quicksave-btn.saved .regular-icon.gptSidekick-main-save-img {
    opacity: 0;
    visibility: hidden;
}

/* Saved List Container */
#quicksave-saved-list {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quicksave-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Favorites Container */
.favorites {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

/* Favorites Header Content */
.favoritesContent {
    margin-bottom: 30px;
    text-align: center;
}

.favoritesContent-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.favoritesContent-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.favoritesContent p {
    font-size: 16px;
    font-family: 'Poppins';
    color: #000000;
    line-height: 24px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 20px;
}

.favoritesContent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D71920;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 10px 20px;
    border: 2px solid #D71920;
    border-radius: 50px;
    background: transparent;
}

.favoritesContent-link:hover {
    background: #D71920;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    border-color: white;
}

.favoritesContent-link img {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.favoritesContent-link:hover img {
    transform: translateX(4px);
}

/* Favorites Count */
.favoritesCount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9AA6B2;
}

.favoritesCount p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.quicksave-clear-all {
    padding: 8px 16px;
    background: #dc3232;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quicksave-clear-all:hover {
    background: #c62d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Favorites List - Two Column Grid */
.favoritesList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Individual Favorite Cards */
.favoritesCard {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: visible !important;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

/* .favoritesCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

.favoritesCard-content {
    padding: 1.5rem 15px 1.5rem 24px;
}

/* Card Top Section */
.favoritesCard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.favoritesCard-type {
    color: #575757;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.favoritesCard-actions {
    display: flex;
    gap: 0px !important;
    align-items: center;
}

/* Share functionality */
.favoritesShare {
    position: relative;
    display: inline-block;
}

.favoritesShare-modal {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    box-shadow: 0 0 30px 4px rgba(0, 0, -4, 0.3);
    z-index: 1000;
    min-width: 255px;
    margin: 0;
    padding: 10px 20px;
    list-style: none;
}

.favoritesShare-modal li {
    margin: 0;
    padding: 0;
}

.favoritesShare-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: black !important;
    text-align: left;
    gap: 0 !important;
    padding: 5px;
}

.favoritesShare-btn:hover {
    background: #E8E8E8;
    color: #D71920 !important;
}

.share-icon {
    font-size: 16px;
    line-height: 1;
}

.favoritesCard-btn,
.quicksave-remove-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 31px;
    gap: 0 !important;
    color: #000000;
}

.favoritesCard-btn:hover,
.quicksave-remove-btn:hover {
    border: none;
    background-color: unset;
    color: #D71920 !important;
}

.quicksave-remove-icon {
    font-size: 20px !important;
    font-weight: bold;
    line-height: 1;
}

.sr-only {
    position: absolute;
    /* width: 1px; */
    /* height: 1px; */
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Card Title */
.favoritesCard-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.favoritesCard-title a,
.favorites-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.favoritesCard-title a:hover,
.favorites-link:hover {
    color: #D71920;
    /* text-decoration: underline; */
}

.favoritesCard-title span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Meta */
.favoritesCard-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.quicksave-saved-date {
    color: #888;
    font-size: 13px;
    font-style: italic;
}

.elementor-page-13315 .quicksave-btn {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .favorites {
        padding: 15px;
    }

    .favoritesContent-title {
        font-size: 2rem;
    }

    .favoritesList {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .favoritesCount {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .favoritesCard-content {
        padding: 16px;
    }

    .favoritesCard-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .favoritesContent-title {
        font-size: 1.8rem;
    }

    .favoritesContent p {
        font-size: 0.9rem;
    }

    .favoritesCard-content {
        padding: 14px;
    }
}

/* Success/Error Messages */
.quicksave-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #46b450;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.quicksave-message.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quicksave-saved-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quicksave-saved-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .quicksave-item-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .quicksave-message {
        right: 10px;
        left: 10px;
        transform: translateY(-50px);
    }

    .quicksave-message.show {
        transform: translateY(0);
    }
}

/* Theme Compatibility */
.quicksave-btn,
.quicksave-remove-btn,
.quicksave-clear-all {
    font-family: inherit;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .quicksave-saved-item {
        background: #2c2c2c;
        border-color: #444;
        color: #ffffff;
    }

    .quicksave-no-items {
        background: #2c2c2c;
        border-color: #444;
        color: #cccccc;
    }

    .quicksave-item-title a {
        color: #4fc3f7;
    }

    .quicksave-item-title a:hover {
        color: #29b6f6;
    }

    .quicksave-saved-date {
        color: #aaa;
    }

    .quicksave-remove-btn {
        background: #444;
        border-color: #555;
        color: #ccc;
    }
}

/* Print styles */
@media print {

    .quicksave-container,
    .quicksave-item-actions,
    .quicksave-message {
        display: none !important;
    }
}