/* assets/css/style.css - Responsive Movie Site */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 600px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search */
.search-section {
    padding: 30px 0;
    background: rgba(0,0,0,0.5);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

.search-box button {
    padding: 15px 30px;
    background: var(--gradient);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

/* Movies Grid */
.movies-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.movie-card a {
    text-decoration: none;
    color: white;
}

.poster-container {
    position: relative;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 1em;
    margin-bottom: 5px;
}

.movie-date {
    color: #aaa;
    font-size: 0.9em;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

/* Movie Detail */
.movie-hero {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.movie-poster-large img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.movie-detail-info h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.movie-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rating-large {
    font-size: 1.5em;
    color: #ffd700;
}

.genre-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.genre-tag {
    background: var(--gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Review Form */
.review-form-card {
    background: #16213e;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #2a2a4a;
    border-radius: 8px;
    background: #0f0f23;
    color: white;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.star-rating .stars {
    display: flex;
    gap: 5px;
}

.star-rating .stars i {
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .stars i.active,
.star-rating .stars i:hover {
    color: #ffd700;
}

/* Review Cards */
.review-card {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: bold;
}

.review-rating i {
    color: #444;
}

.review-rating i.active {
    color: #ffd700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
}

.lang-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
    min-width: 150px;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.lang-menu a:hover {
    background: var(--primary);
}

/* Footer */
footer {
    background: #0f0f23;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        padding: 20px;
    }
    
    nav.show {
        display: block;
    }
    
    nav a {
        display: block;
        padding: 10px;
        margin: 0;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .movie-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .movie-poster-large {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-buttons-large {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.5em;
    }
}

/* Footer */
footer {
    background: #0f0f23;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #2a2a4a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    color: #666;
    font-size: 0.9em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

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

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

/* Admin Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--dark);
}

.login-box {
    background: #16213e;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #2a2a4a;
    border-radius: 8px;
    background: #0f0f23;
    color: white;
}

.login-box button {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 15px;
}
