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

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #1e3a8a 100%);
    min-height: 100vh;
    height: 100vh;
    color: white;
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Buttons */
.btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.5);
}

.btn-admin {
    background: rgba(255,255,255,0.15);
}

/* Logo */
#mainScreen .logo {
    text-align: center;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0;
}

.vs {
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 4px 20px rgba(0,0,0,0.3);
}

/* Title Section */
.title {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 20px;
}

.title h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 8px;
    opacity: 0.9;
}

.total-votes {
    font-size: 0.9rem;
    color: #d1d5db;
}

.total-votes span {
    color: white;
    font-weight: 700;
}

/* Voting Cards - ALWAYS SIDE BY SIDE */
.voting-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 20px;
}

@media (max-width: 480px) {
    .voting-cards {
        gap: 10px;
    }
}

.card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(12px, 2.5vw, 20px);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-bibi {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(29, 78, 216, 0.3));
    border-color: rgba(59, 130, 246, 0.5);
}

.card-bibi:hover {
    border-color: rgba(59, 130, 246, 0.8);
}

.card-bennett {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(194, 65, 12, 0.3));
    border-color: rgba(249, 115, 22, 0.5);
}

.card-bennett:hover {
    border-color: rgba(249, 115, 22, 0.8);
}

.percentage {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 700;
    z-index: 10;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 10px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.card-name {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 3px;
}

.card-subtitle {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    opacity: 0.8;
    margin-bottom: 10px;
}

.card-votes {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 8px;
    border: 2px solid rgba(255,255,255,0.2);
}

.card-votes-label {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    opacity: 0.8;
    margin-bottom: 3px;
}

.card-votes-number {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
}

/* Hover Effect Overlay */
.card::after {
    content: 'הצבע עכשיו';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.card:hover::after {
    opacity: 1;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.login-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.2);
    max-width: 500px;
    margin: 20px;
}

.btn-login {
    background: white;
    color: #1f2937;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.google-icon {
    width: 24px;
    height: 24px;
}

/* Thank You & Other Screens */
.thankyou-screen,
.timer-screen,
.payment-screen,
.admin-screen {
    padding: 80px 20px 20px;
    height: 100vh;
    overflow-y: auto;
}

.thankyou-screen .container,
.timer-screen .container {
    max-width: 900px;
    margin: 0 auto;
}

.thankyou-screen .title,
.timer-screen .title {
    margin-top: 0;
    margin-bottom: 10px;
}

.thankyou-screen .title h2,
.timer-screen .title h2 {
    margin-bottom: 5px;
}

.thankyou-screen .title p,
.timer-screen .title p {
    margin: 0;
}

.thankyou-icon,
.timer-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 10px;
}

.timer-icon {
    background: rgba(251, 191, 36, 0.2);
}

.section-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid rgba(255,255,255,0.2);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: inherit;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-facebook {
    background: #1877F2;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Purchase Options */
.purchase-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.purchase-option {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.purchase-option:hover {
    transform: scale(1.05);
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(255,255,255,0.1);
}

.purchase-badge {
    display: inline-block;
    background: #f59e0b;
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.purchase-votes {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.purchase-price {
    font-size: 1.8rem;
    color: #fbbf24;
    font-weight: 700;
}

.purchase-savings {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    width: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    border: none;
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.payment-method:hover {
    transform: scale(1.03);
}

.payment-method.bit {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.3));
}

.payment-method.apple {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.5), rgba(17, 24, 39, 0.5));
}

/* Timer Display */
.timer-display {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #fbbf24;
    text-align: center;
    margin: 10px 0;
}

/* Back Button */
.back-button {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.back-button:hover {
    color: white;
}

.back-to-home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* Privacy Link */
.privacy-link {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 30px;
}

.privacy-link a {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link a:hover {
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Specific */
.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.admin-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    width: 120px;
    font-family: inherit;
}

.admin-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        justify-content: center;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .purchase-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .purchase-options {
        grid-template-columns: 1fr;
    }
}
