/**
 * Gifts Page Styling
 * Modern, responsive design for gift cards display
 * SCOPED TO GIFTS PAGE ONLY - uses .gifts-page-container wrapper
 */

/* Gift Card Container - SCOPED TO GIFTS PAGE */
.gifts-page-container .qd_gift_data {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    position: relative;
}

.gifts-page-container .qd_gift_data:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Gift Image Container - SCOPED TO GIFTS PAGE */
.gifts-page-container .qd_gift_img {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gifts-page-container .qd_gift_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gifts-page-container .qd_gift_data:hover .qd_gift_img img {
    transform: scale(1.05);
}

/* Gift Footer with User Info - SCOPED TO GIFTS PAGE */
.gifts-page-container .qd_gift_data_foot {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gifts-page-container .qd_gift_data_foot .avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gifts-page-container .qd_gift_data_foot .avatar:hover {
    transform: scale(1.1);
}

.gifts-page-container .qd_gift_data_foot .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gifts-page-container .qd_gift_data_foot .info {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.gifts-page-container .qd_gift_data_foot .info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.gifts-page-container .qd_gift_data_foot .info p a {
    color: #d35147;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gifts-page-container .qd_gift_data_foot .info p a:hover {
    color: #b83e35;
    text-decoration: underline;
}

.gifts-page-container .qd_gift_data_foot .info .time {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Grid Layout Improvements - SCOPED TO GIFTS PAGE ONLY */
.gifts-page-container #likes_users_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Empty State Styling */
.empty_state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty_state svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

/* Load More Button */
.load_more {
    display: block;
    margin: 32px auto;
    padding: 12px 32px;
    /* background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); */
    color: #5f5f5f;
    border: none;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    line-height: 3px;
    transition: all 0.3s ease;
    border: 1px solid #e7e8ec;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.load_more:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 16px rgba(211, 81, 71, 0.4); */
    /* background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%); */
}

.load_more:active {
    transform: translateY(0);
}

/* Page Header Styling */
.dt_home_rand_user h4 {
    display: flex;
    align-items: center;
    font-weight: 500!important;
    gap: 4px;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 700;
    color: #727272;
    text-transform: uppercase;
}

.dt_home_rand_user h4 div {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dt_home_rand_user h4 svg {
    fill: #fff;
}

/* Responsive Design - SCOPED TO GIFTS PAGE */
@media (max-width: 1200px) {
    .gifts-page-container #likes_users_container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .gifts-page-container #likes_users_container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .gifts-page-container .qd_gift_data_foot {
        padding: 12px;
    }

    .gifts-page-container .qd_gift_data_foot .avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .gifts-page-container #likes_users_container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .gifts-page-container .qd_gift_data {
        margin-bottom: 16px;
    }

    .gifts-page-container .dt_home_rand_user h4 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .gifts-page-container #likes_users_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gifts-page-container .qd_gift_data_foot .info p {
        font-size: 13px;
    }

    .gifts-page-container .qd_gift_data_foot .info .time {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .gifts-page-container #likes_users_container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gifts-page-container .qd_gift_data_foot {
        padding: 16px;
    }

    .gifts-page-container .qd_gift_data_foot .avatar {
        width: 48px;
        height: 48px;
    }
}

/* Dark Mode Support - SCOPED TO GIFTS PAGE */
body.night-mode .gifts-page-container .qd_gift_data {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.night-mode .gifts-page-container .qd_gift_data:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.night-mode .gifts-page-container .qd_gift_data_foot {
    background: #2a2a2a;
    border-top-color: #3a3a3a;
}

body.night-mode .gifts-page-container .qd_gift_data_foot .info p {
    color: #e0e0e0;
}

body.night-mode .gifts-page-container .qd_gift_data_foot .info p a {
    color: #ff6b6b;
}

body.night-mode .gifts-page-container .qd_gift_data_foot .info p a:hover {
    color: #ff8787;
}

body.night-mode .gifts-page-container .qd_gift_data_foot .info .time {
    color: #888;
}

body.night-mode .dt_home_rand_user h4 {
    color: #e0e0e0;
}

body.night-mode .empty_state {
    color: #888;
}

/* Animation for gift cards on load - SCOPED TO GIFTS PAGE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gifts-page-container .qd_gift_data {
    animation: fadeInUp 0.4s ease-out;
}

/* Stagger animation for multiple cards - SCOPED TO GIFTS PAGE */
.gifts-page-container .qd_gift_data:nth-child(1) { animation-delay: 0.05s; }
.gifts-page-container .qd_gift_data:nth-child(2) { animation-delay: 0.1s; }
.gifts-page-container .qd_gift_data:nth-child(3) { animation-delay: 0.15s; }
.gifts-page-container .qd_gift_data:nth-child(4) { animation-delay: 0.2s; }
.gifts-page-container .qd_gift_data:nth-child(5) { animation-delay: 0.25s; }
.gifts-page-container .qd_gift_data:nth-child(6) { animation-delay: 0.3s; }

