/* Modal Components Styles */
/* Base modal styles and specific modal implementations */

/* ========================================
   Base Modal Styles
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    width: 100%;
}

.modal--open .modal__content {
    transform: scale(1) translateY(0);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal__close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal__close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* ========================================
   Button Styles for Modals
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn--primary {
    background: #f97316;
    color: white;
}

.btn--primary:hover {
    background: #ea580c;
}

.btn--primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn--secondary:hover {
    background: #e5e7eb;
}

.btn--outline {
    background: transparent;
    color: #f97316;
    border: 1px solid #f97316;
}

.btn--outline:hover {
    background: #f97316;
    color: white;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   Wishlist Modal Styles
   ======================================== */

.wishlist-modal .modal__content {
    max-width: 32rem;
}

.wishlist-modal__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wishlist-modal__product-info {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.wishlist-modal__product-image {
    width: 3rem;
    /* 48px - match React */
    height: 3rem;
    /* 48px - match React */
    border-radius: 0.5rem;
    /* rounded-lg - match React */
    background: #f3f4f6;
    /* bg-gray-100 - match React */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wishlist-modal__product-image .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    font-size: 1.5rem;
    color: #9ca3af;
}

.wishlist-modal__product-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.wishlist-modal__product-details .product-name {
    font-size: 1rem;
    font-weight: 500;
    /* font-medium - match React */
    color: #1f2937;
    /* text-gray-800 - match React */
    margin: 0 0 0.125rem 0;
    line-height: 1.25;
    /* line-clamp-1 equivalent */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

.wishlist-modal__product-details .product-price {
    font-size: 0.875rem;
    /* text-sm - match React */
    color: #6b7280;
    /* text-gray-500 - match React */
    margin: 0;
}

/* Legacy support for old h4/p structure */
.wishlist-modal__product-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.wishlist-modal__product-details p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.wishlist-modal__wishlists h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.wishlist-modal__loading {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.wishlist-modal__empty {
    padding: 2rem;
    text-align: center;
}

.wishlist-modal__empty p {
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.wishlist-modal__wishlist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: inherit;
    text-align: left;
}

.wishlist-modal__wishlist:hover {
    border-color: #f97316;
    background: #fef3c7;
}

.wishlist-modal__wishlist:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wishlist-modal__add-icon {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Legacy radio support for backwards compatibility */
.wishlist-modal__wishlist input[type="radio"] {
    display: none;
}

.wishlist-modal__wishlist label {
    display: block;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-modal__wishlist label:hover {
    border-color: #f97316;
    background: #fef3c7;
}

.wishlist-modal__wishlist input[type="radio"]:checked+label {
    border-color: #f97316;
    background: #fef3c7;
}

.wishlist-modal__wishlist-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-modal__wishlist-name {
    font-weight: 500;
    color: #111827;
}

.wishlist-modal__wishlist-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.wishlist-modal__create {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.wishlist-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ========================================
   Share Modal Styles
   ======================================== */

.share-modal .modal__content {
    max-width: 28rem;
}

.share-modal__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-modal__preview-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.share-modal__preview-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.share-modal__preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-modal__preview-content {
    flex: 1;
    min-width: 0;
}

.share-modal__preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-modal__preview-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-modal__preview-url {
    font-size: 0.75rem;
    color: #9ca3af;
    word-break: break-all;
}

.share-modal__platforms h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.share-modal__buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.share-modal__platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.share-modal__platform:hover {
    border-color: #f97316;
    background: #fef3c7;
    transform: translateY(-2px);
}

.share-modal__platform svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Platform-specific colors */
.share-modal__platform[data-platform="facebook"]:hover {
    border-color: #1877f2;
    background: #e7f3ff;
    color: #1877f2;
}

.share-modal__platform[data-platform="facebook"]:hover svg {
    color: #1877f2;
}

.share-modal__platform[data-platform="twitter"]:hover {
    border-color: #1da1f2;
    background: #e1f5fe;
    color: #1da1f2;
}

.share-modal__platform[data-platform="twitter"]:hover svg {
    color: #1da1f2;
}

.share-modal__platform[data-platform="pinterest"]:hover {
    border-color: #bd081c;
    background: #fce4ec;
    color: #bd081c;
}

.share-modal__platform[data-platform="pinterest"]:hover svg {
    color: #bd081c;
}

.share-modal__platform[data-platform="whatsapp"]:hover {
    border-color: #25d366;
    background: #e8f5e8;
    color: #25d366;
}

.share-modal__platform[data-platform="whatsapp"]:hover svg {
    color: #25d366;
}

.share-modal__platform[data-platform="copy"]:hover {
    border-color: #6b7280;
    background: #f3f4f6;
    color: #374151;
}

.share-modal__platform[data-platform="copy"]:hover svg {
    color: #374151;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
    .modal {
        padding: 0.5rem;
    }

    .modal__content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0.5rem;
    }

    .modal__header {
        padding: 1rem;
    }

    .modal__body {
        padding: 1rem;
        max-height: calc(100vh - 100px);
    }

    .wishlist-modal__actions {
        flex-direction: column;
    }

    .share-modal__buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-modal__preview-card {
        flex-direction: column;
        text-align: center;
    }

    .share-modal__preview-image {
        align-self: center;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.modal:focus-within {
    outline: none;
}

.modal__close:focus-visible,
.btn:focus-visible,
.share-modal__platform:focus-visible,
.wishlist-modal__wishlist label:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .modal,
    .modal__content,
    .btn,
    .share-modal__platform,
    .wishlist-modal__wishlist label {
        transition: none;
    }
}

/* ========================================
   Loading States
   ======================================== */

.btn--loading {
    position: relative;
    color: transparent;
}

.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Dark Mode Support (Future)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .modal__backdrop {
        background: rgba(0, 0, 0, 0.7);
    }

    .modal__content {
        background: #1f2937;
        color: #f9fafb;
    }

    .modal__header {
        border-bottom-color: #374151;
    }

    .modal__title {
        color: #f9fafb;
    }

    .modal__close {
        color: #9ca3af;
    }

    .modal__close:hover {
        background: #374151;
        color: #f3f4f6;
    }
}

/* ========================================
   My Entries Modal Styles
   ======================================== */

.my-entries-modal .modal__content {
    max-width: 85rem;
    width: 95%;
    max-height: 85vh;
    /* Fixed height constraint */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow modal itself to scroll */
}

.my-entries-modal .modal__header {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    border-bottom: 1px solid var(--primary-100);
    padding: 2rem 2rem 1.5rem 2rem;
}

.my-entries-modal .modal__header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.my-entries-modal .modal__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.my-entries-modal .modal__title i {
    color: var(--primary);
    width: 2rem;
    height: 2rem;
    background: var(--primary-100);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
}

.my-entries-modal .modal__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Controls Section */
.my-entries-modal__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem 1.5rem 2rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-light);
}

.my-entries-modal__filters {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 140px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.my-entries-modal__stats {
    background: var(--primary-50);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary-100);
}

.my-entries-modal__stats .entries-count {
    font-size: 0.875rem;
    color: var(--primary-700);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.my-entries-modal__stats .entries-count::before {
    content: "📋";
    font-size: 1rem;
}


/* Entries List */
.my-entries-modal__list {
    overflow-y: visible;
    /* Allow natural expansion */
    padding: 0 2rem 2rem 2rem;
    min-height: 0;
    /* Allow shrinking */
}

/* Custom Scrollbar */
.my-entries-modal__list::-webkit-scrollbar {
    width: 8px;
}

.my-entries-modal__list::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px;
}

.my-entries-modal__list::-webkit-scrollbar-thumb {
    background: var(--primary-200);
    border-radius: 4px;
}

.my-entries-modal__list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-300);
}

/* Giveaway Entry Card Styles - Inspired by Platform Completion UI */
.giveaway-entry-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 1rem;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.giveaway-entry-card:hover {
    border-color: var(--primary-200);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Card Header */
.giveaway-entry-card__header {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.giveaway-entry-card__header:hover {
    background: var(--background-light);
}

.giveaway-entry-card__main {
    flex: 1;
}

.giveaway-entry-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.giveaway-entry-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.giveaway-entry-card__entries,
.giveaway-entry-card__date,
.giveaway-entry-card__time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.giveaway-entry-card__entries i,
.giveaway-entry-card__date i,
.giveaway-entry-card__time i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.giveaway-entry-card__status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.giveaway-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1px solid;
}

.giveaway-status-badge--active {
    background: var(--success-100);
    color: var(--success-800);
    border-color: var(--success-300);
}

.giveaway-status-badge--ended {
    background: var(--error-100);
    color: var(--error-800);
    border-color: var(--error-300);
}

.giveaway-status-badge--pending {
    background: var(--warning-100);
    color: var(--warning-800);
    border-color: var(--warning-300);
}

.giveaway-entry-card__expand-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.giveaway-entry-card__expand-btn:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.giveaway-entry-card__expand-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

/* Social Platforms Section - Compact for modal */
.my-entries-modal .social-platforms {
    padding: 1rem;
    background: var(--background-light);
    margin-bottom: 1rem;
}

.my-entries-modal .social-platforms__header .platforms-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.my-entries-modal .social-platforms__header .platforms-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Compact platform design for modal */
.my-entries-modal .platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Compact Platform Pills */
.my-entries-modal .platform-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: 1.5rem;
    /* Pill shape */
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 0;
    flex-shrink: 0;
}

.my-entries-modal .platform-card:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.my-entries-modal .platform-card.completed {
    background: var(--success-50);
    border-color: var(--success-200);
    color: var(--success-700);
}

.my-entries-modal .platform-card.completed:hover {
    background: var(--success-100);
    border-color: var(--success-300);
}

/* Compact Platform Icon */
.my-entries-modal .platform-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-entries-modal .platform-icon i,
.my-entries-modal .platform-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Compact Platform Name */
.my-entries-modal .platform-name {
    font-weight: 500;
    margin: 0;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Compact Status */
.my-entries-modal .platform-status .status-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Restore missing platform status styles */
.platform-status__action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.platform-status__completed {
    color: var(--success-700);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-status__completed i {
    width: 1rem;
    height: 1rem;
    color: var(--success-600);
}

.platform-status__cta {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide complex platform card content in modal */
.my-entries-modal .platform-card__header {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.my-entries-modal .platform-card__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.my-entries-modal .platform-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.my-entries-modal .platform-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Entry Summary Section - Beautiful Design */
.entry-summary {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.entry-summary__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-summary__title i {
    color: var(--primary-500);
}

.entry-summary__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Entry Lines - Beautiful one-line format */
.entry-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.entry-line:hover {
    border-color: var(--primary-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-line--winner {
    color: var(--success-700);
    font-weight: 500;
}

.entry-line__icon {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--success-600);
    width: 1.25rem;
    height: 1.25rem;
}

.entry-line__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.entry-line__platform {
    font-weight: 500;
    color: var(--text-primary);
}

.entry-line__separator {
    color: var(--text-secondary);
    font-weight: 400;
}

.entry-line__date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.entry-line__winner {
    background: var(--success-100);
    color: var(--success-700);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Motivation Messages - Beautiful Design */
.motivation-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.motivation-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.motivation-message--winner {
    background: linear-gradient(135deg, var(--success-50) 0%, var(--success-25) 100%);
    border: 1px solid var(--success-200);
}

.motivation-message--encourage {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-25) 100%);
    border: 1px solid var(--primary-200);
}

.motivation-message--active {
    background: linear-gradient(135deg, var(--secondary-50) 0%, var(--secondary-25) 100%);
    border: 1px solid var(--secondary-200);
}

.motivation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.8;
}

.motivation-content {
    flex: 1;
}

.motivation-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--success-700);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.motivation-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

.motivation-message--winner .motivation-text {
    color: var(--success-700);
}

.motivation-message--encourage .motivation-text {
    color: var(--primary-700);
}

.motivation-message--active .motivation-text {
    color: var(--secondary-700);
}

/* Expandable Details Section */
.giveaway-entry-card__details {
    padding: 1rem;
    /* Reduced padding */
    background: white;
    border-top: 1px solid var(--border-light);
    /* animation: slideDown 0.3s ease; DISABLED - causing disappearing issue */
    display: none;
    /* Hidden by default */
    overflow: visible;
    /* Allow content to show */
}

/* Expanded card details - beautiful styling */
.my-entries-modal .giveaway-entry-card.expanded .giveaway-entry-card__details {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background-light) 0%, #f8fafc 100%);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 1rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.entry-details__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.entry-details__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.entry-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
}

.entry-detail-item__icon {
    color: var(--success-600);
}

.entry-detail-item__icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.entry-detail-item__content {
    flex: 1;
}

.entry-detail-item__platform {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.entry-detail-item__date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.entry-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.entry-status--active {
    background: var(--success-100);
    color: var(--success-800);
}

.giveaway-entry-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Body */
.my-entries-modal .modal__body {
    flex: 1;
    overflow: visible;
    /* Allow body content to expand */
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    /* Allow shrinking */
}

/* Empty State */
.my-entries-modal__empty,
.my-entries-modal__error {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    flex: 1;
}

.empty-state,
.error-state {
    text-align: center;
    max-width: 28rem;
}

.empty-state__icon,
.error-state__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    color: var(--text-light);
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-light);
}

.empty-state__title,
.error-state__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.empty-state__description,
.error-state__description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.empty-state__action,
.error-state__action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-state__action:hover,
.error-state__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Loading State */
.my-entries-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    flex: 1;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    margin-bottom: 2rem;
}

.loading-spinner__circle {
    width: 100%;
    height: 100%;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Footer */
.my-entries-modal .modal__footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .my-entries-modal .modal__content {
        max-width: 95%;
        margin: 0.5rem;
    }

    .my-entries-modal__controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .my-entries-modal__filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .giveaway-entry-card__header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .giveaway-entry-card__status {
        align-self: flex-end;
        gap: 0.5rem;
    }

    .giveaway-entry-card__meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .giveaway-entry-card__platforms {
        padding: 1rem;
    }

    .platform-status {
        padding: 0.75rem;
    }

    .platform-status__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .platform-status__icon i {
        width: 1.25rem;
        height: 1.25rem;
    }

    .giveaway-entry-card__details {
        padding: 1rem;
    }

    .entry-detail-item {
        padding: 0.5rem;
        gap: 0.75rem;
    }
}