/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #0066cc; /* Blue text */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Netflix Red for title */
.netflix-red {
    color: #E50914;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 102, 204, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    border-right: 2px solid #0066cc;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #0066cc;
}

.sidebar-header h3 {
    color: #0066cc;
    font-size: 1.2rem;
}

.close-sidebar {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-sidebar:hover {
    color: #E50914;
}

.sidebar-menu {
    list-style: none;
    padding: 20px;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: #0066cc;
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a i {
    width: 20px;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 280px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.menu-btn {
    background: none;
    border: 2px solid #0066cc;
    color: #0066cc;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.placeholder {
    width: 45px;
}

/* Subtitle */
.subtitle {
    text-align: center;
    color: #0066cc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Voting Container */
.voting-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 30px;
}

/* Photo Cards */
.photo-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-10px);
    border-color: #0066cc;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.photo-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
}

.photo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover .photo-wrapper img {
    transform: scale(1.05);
}

.photo-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Vote Info */
.vote-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vote-count {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
}

.vote-label {
    color: #0066cc;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Vote Button */
.vote-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #0066cc;
    color: #0066cc;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vote-btn:hover {
    background: #0066cc;
    color: white;
}

.vote-btn i {
    transition: transform 0.3s;
}

.vote-btn:hover i {
    transform: scale(1.2);
}

/* VS Badge */
.vs-badge {
    width: 50px;
    height: 50px;
    background: #E50914;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

/* Total Votes Bar */
.total-votes-bar {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 15px;
}

.total-votes-text {
    color: #0066cc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.total-votes-text i {
    color: #E50914;
}

.vote-percentage {
    height: 20px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.percentage-bar {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #E50914);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Success Message */
.success-message {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0066cc;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    transition: bottom 0.3s ease;
    z-index: 1001;
}

.success-message.show {
    bottom: 30px;
}

.success-message i {
    color: #E50914;
    margin-right: 10px;
}

/* Page Styles (for about, connect, email) */
.page-container {
    min-height: 100vh;
    padding: 20px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border: 2px solid #0066cc;
    border-radius: 25px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #0066cc;
    color: white;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    border: 2px solid #0066cc;
    text-align: center;
}

.page-icon {
    font-size: 3rem;
    color: #E50914;
    margin-bottom: 20px;
}

.content-card h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-card p {
    color: #0066cc;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #E50914;
    transform: translateY(-5px);
}

.email-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.email-info i {
    color: #E50914;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }
    
    .voting-container {
        gap: 20px;
    }
    
    .photo-card {
        min-width: 100%;
    }
    
    .vs-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .vote-count {
        font-size: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}