/* Suditi Global Academy - Voting Cast Portal Styles */

:root {
    /* School Colors */
    --color-primary: #8B3D2A;
    --color-primary-light: #B5563E;
    --color-primary-dark: #5C2A1F;
    --color-accent: #C9A87C;
    --color-gold: #D4A574;
    --color-bg-cream: #FDF9F5;
    --color-bg-light: #FAF7F2;
    --color-text-dark: #2D1F1A;
    --color-text-medium: #5C4A3D;
    --color-text-light: #8B7A6B;
    --color-white: #FFFFFF;
    --color-success: #28a745;
    --color-error: #dc3545;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 31, 26, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 31, 26, 0.12);
    --shadow-lg: 0 16px 48px rgba(45, 31, 26, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}

.header-info {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 31, 26, 0.1);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-medium);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(45, 31, 26, 0.85) 0%, rgba(139, 61, 42, 0.75) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%238B3D2A" width="1200" height="800"/><path fill="%23B5563E" opacity="0.3" d="M0 400c200-100 400-100 600 0s400 100 600 0v400H0z"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 31, 26, 0.7) 0%, rgba(139, 61, 42, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: var(--space-xl) var(--space-md);
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-md);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.section-subtitle {
    color: var(--color-text-medium);
    font-size: 1.0625rem;
}

/* Candidates Section */
.candidates {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.candidate-category {
    margin-bottom: var(--space-xl);
}

.category-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: var(--space-sm);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.candidates-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.candidate-card {
    background-color: var(--color-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.candidate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.candidate-image {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.candidate-avatar {
    font-size: 5rem;
}

.candidate-info {
    padding: var(--space-md);
}

.candidate-info h4 {
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.candidate-class {
    display: block;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.candidate-vision {
    font-size: 0.9375rem;
    color: var(--color-text-medium);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.candidate-agenda {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agenda-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-cream);
    border-radius: 20px;
    color: var(--color-text-medium);
}

/* Voting Section */
.voting {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-bg-cream) 0%, var(--color-bg-light) 100%);
}

.voting-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.voting-form {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.voter-verification {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(45, 31, 26, 0.1);
}

.voter-verification h3 {
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-medium);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid rgba(45, 31, 26, 0.15);
    border-radius: 8px;
    background-color: var(--color-bg-light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 61, 42, 0.1);
}

.voting-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.vote-position h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.position-desc {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vote-option {
    cursor: pointer;
}

.vote-option input {
    display: none;
}

.vote-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border: 2px solid rgba(45, 31, 26, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.vote-option input:checked + .vote-card {
    border-color: var(--color-primary);
    background-color: rgba(139, 61, 42, 0.05);
}

.vote-avatar {
    font-size: 2.5rem;
}

.vote-info strong {
    display: block;
    color: var(--color-text-dark);
}

.vote-info span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

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

.voting-note {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Footer */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-cream);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.footer-brand h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9375rem;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.footer-contact p {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.footer-election h4 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-election p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-tagline {
    color: var(--color-gold);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background-color: var(--color-white);
    border-radius: 16px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(45, 31, 26, 0.1);
}

.modal-header h3 {
    color: var(--color-text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-medium);
}

.modal-body {
    padding: var(--space-md);
}

.vote-summary {
    background-color: var(--color-bg-light);
    padding: var(--space-md);
    border-radius: 8px;
    margin: var(--space-sm) 0;
}

.vote-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 31, 26, 0.1);
}

.vote-summary-item:last-child {
    border-bottom: none;
}

.modal-warning {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

.modal-footer {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid rgba(45, 31, 26, 0.1);
}

.modal-footer .btn {
    flex: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--color-success);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .candidates-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .voting-sections {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-info {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .candidates-row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo-icon {
        margin: 0 auto var(--space-sm);
    }
}