/* Netflix Rental Site - Main Stylesheet */
:root {
    --netflix-red: #e50914;
    --netflix-dark: #141414;
    --netflix-gray: #333333;
    --netflix-light: #f8f9fa;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--netflix-dark) 0%, var(--netflix-gray) 100%);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Login/Register page specific body styling */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Navigation */
.navbar {
    background-color: var(--netflix-red) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

/* Hero Section - Kompakt */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                radial-gradient(circle at 30% 50%, var(--netflix-red) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, #b8070f 0%, transparent 50%);
    padding: 60px 0 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="white" opacity="0.03" cx="20" cy="20" r="2"/><circle fill="white" opacity="0.03" cx="80" cy="80" r="2"/><circle fill="white" opacity="0.03" cx="40" cy="60" r="1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--netflix-red);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: #b8070f;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

/* Quick Features */
.quick-features {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: -30px auto 50px auto;
    max-width: 1000px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 1rem;
}

.feature-icon {
    background: var(--netflix-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Membership Plans - Ana Odak */
.plans-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.membership-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--netflix-red), #b8070f);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.3);
}

.membership-card.popular {
    border: 2px solid var(--netflix-red);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(45deg, var(--netflix-red), #b8070f);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    animation: pulse 2s infinite;
    z-index: 1000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.membership-type-header {
    text-align: center;
    margin-bottom: 2rem;
}

.type-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin-bottom: 0.5rem;
}

.type-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

.plan-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.plan-item:hover {
    background: rgba(229,9,20,0.1);
    border-color: var(--netflix-red);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.plan-duration {
    font-size: 0.85rem;
    opacity: 0.7;
}

.price-container {
    text-align: right;
}

.original-price {
    font-size: 16px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.discount-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    animation: discount-pulse 2s infinite;
}

@keyframes discount-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-purchase {
    background: var(--netflix-red);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-purchase:hover {
    background: #b8070f;
    color: white;
    transform: scale(1.05);
}

/* Mobile Plan Tabs - Modern Design */
.nav-pills {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-pills .nav-link {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    margin: 0 2px;
    border-radius: 20px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229,9,20,0.2);
}

.nav-pills .nav-link:hover::before {
    left: 100%;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--netflix-red), #b8070f);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229,9,20,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-pills .nav-link.active::before {
    display: none;
}

/* Footer - Kompakt */
.footer {
    background: var(--netflix-dark);
    padding: 2rem 0 1rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: var(--netflix-red);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p, .footer-section li {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--netflix-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Modern Cards */
.modern-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--netflix-red), #b8070f);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
}

/* Active Membership Card */
.active-card {
    border: 2px solid var(--netflix-red);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

/* Netflix Email Section */
.netflix-email {
    background: linear-gradient(135deg, rgba(40,167,69,0.2), rgba(40,167,69,0.1));
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.email-address {
    font-size: 1.2rem;
    font-weight: 700;
    color: #51cf66;
    word-break: break-all;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 1rem 0;
}

/* Buttons */
.btn-modern {
    background: var(--netflix-red);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.btn-modern:hover {
    background: #b8070f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-modern.active {
    background: #b8070f;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
}

.btn-netflix {
    background: var(--netflix-red);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-netflix:hover {
    background: #b8070f;
    color: white;
    transform: translateY(-2px);
}

.btn-success-modern {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success-modern:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.btn-copy {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 30px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

/* Form Controls */
.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 10px;
    padding: 12px 15px;
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--netflix-red);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(229,9,20,0.25);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background: rgba(220,53,69,0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220,53,69,0.3);
}

.alert-success {
    background: rgba(40,167,69,0.2);
    color: #51cf66;
    border: 1px solid rgba(40,167,69,0.3);
}

/* Status Badge */
.status-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Time Display */
.time-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin: 1rem 0;
}

/* Profile Badge */
.profile-badge {
    background: linear-gradient(45deg, #ffc107, #ffed4e);
    color: #000;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}

/* Simple Instructions */
.simple-instructions {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.instruction-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.instruction-item:last-child {
    border-bottom: none;
}

.instruction-number {
    background: var(--netflix-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* History Table */
.history-table {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
}

.table-dark {
    background: transparent;
}

.table-dark td, .table-dark th {
    border-color: rgba(255,255,255,0.1);
    padding: 1rem;
}

/* Purchase Page Specific */
.purchase-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 40px;
    margin: 50px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.plan-details {
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.price-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--netflix-red);
    margin: 20px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--netflix-red);
    margin-right: 10px;
}

/* Login/Register Page Specific */
.login-container, .register-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.brand-logo {
    color: var(--netflix-red);
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo:hover {
    color: var(--netflix-red);
    text-decoration: none;
}

.register-link, .login-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.register-link:hover, .login-link:hover {
    color: var(--netflix-red);
}

.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.1rem;
}

.back-home:hover {
    color: var(--netflix-red);
}

/* Animations */
.device-instructions {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badges {
        gap: 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .quick-features {
        padding: 1.5rem;
        margin: -20px 1rem 30px 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .membership-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .membership-card.popular {
        transform: none;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .price-container {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .netflix-email {
        padding: 1rem;
    }
    
    .email-address {
        font-size: 1rem;
    }
    
    .btn-success-modern {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .time-display {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 30px 0;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .quick-features {
        margin: -15px 0.5rem 20px 0.5rem;
        padding: 1rem;
    }
    
    .membership-card {
        padding: 1rem;
    }
    
    .type-name {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}