/* Movidna Membership Styles */

/* --- Container & Layout --- */
.movidna-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}

.movidna-auth-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.movidna-auth-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.movidna-auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.movidna-auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.movidna-auth-header p {
    color: #888;
    font-size: 0.95rem;
}

/* --- Forms --- */
.movidna-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.movidna-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.movidna-input-wrapper {
    position: relative;
}

.movidna-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.movidna-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    /* space for icon */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.movidna-input:focus {
    outline: none;
    border-color: var(--primary, #e50914);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}

.movidna-input:focus+.movidna-input-icon {
    color: var(--primary, #e50914);
}

.movidna-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary, #e50914), #b00710);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.movidna-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
}

.movidna-form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

.movidna-form-footer a {
    color: var(--accent, #564dff);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.movidna-form-footer a:hover {
    text-decoration: underline;
}

/* --- Alerts --- */
.movidna-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movidna-alert.error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ffcccc;
}

.movidna-alert.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #d4efdf;
}


/* --- Profile Redesign --- */
.test-profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header-card {
    background: linear-gradient(135deg, #141414, #2b1d24);
    background-size: cover;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(229, 9, 20, 0.1), rgba(86, 77, 255, 0.1));
    z-index: 0;
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 1;
}

.profile-avatar-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-info-content {
    z-index: 1;
    flex: 1;
}

.profile-info-content h2 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.profile-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
    color: #ff4d4d;
}

/* Tabs */
.profile-nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1px;
}

.profile-tab-btn {
    background: none;
    border: none;
    color: #888;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.profile-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #e50914);
    transition: width 0.3s ease;
}

.profile-tab-btn.active {
    color: white;
}

.profile-tab-btn.active::after {
    width: 100%;
}

.profile-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* --- Movie Cards (Global for Profile) --- */
.profile-movie-card {
    display: block;
    position: relative;
    /* Removed text-decoration: none; here, moved to child 'a' tag */
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-movie-card a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
    color: white;
}

.profile-movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-movie-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.profile-movie-card:hover .card-overlay .dashicons {
    transform: scale(1);
}

.card-info {
    padding: 12px;
    background: linear-gradient(to bottom, #1a1a1a, #141414);
}

.card-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #eee;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.card-meta .score {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.card-meta .score .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.card-meta .year {
    color: #888;
    font-weight: 500;
}

/* Remove Button Override */
.profile-movie-card .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(229, 9, 20, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-movie-card:hover .remove-btn {
    opacity: 1;
}

.profile-movie-card .remove-btn:hover {
    background: #e50914;
    transform: scale(1.1);
}

/* Grid Adjustments */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.list-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* --- Saved Lists --- */
.saved-list-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.saved-list-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.delete-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: scale(1.1);
}

.list-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: white;
}

.list-meta {
    font-size: 0.9rem;
    color: #888;
}

.expand-icon {
    font-size: 0.9rem;
    color: #888;
    transition: transform 0.3s ease, color 0.3s;
}

.expand-icon.rotated {
    transform: rotate(180deg);
    color: white;
}

.empty-state {
    color: #888;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

.btn-get-recommendations {
    display: inline-block;
    background: linear-gradient(135deg, #e50914, #b81d24);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.btn-get-recommendations:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* --- Settings --- */
.settings-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: white;
}

.settings-card .input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-top: 5px;
    margin-bottom: 15px;
}

.settings-card .button-primary {
    background: var(--primary, #e50914);
    border: none;
    padding: 12px 24px;
}

.danger-zone {
    border: 1px solid rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
}

.danger-zone h3 {
    color: #ff4d4d;
}

.button-danger {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.button-danger:hover {
    background: #ff4d4d;
    color: white;
}