/* mn-public-page.css - Muga Gi Nyalango Public Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1f2937;
    line-height: 1.6;
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.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 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') repeat-x bottom;
    background-size: cover;
    opacity: 0.3;
}

.clan-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.description {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

/* Section Headers */
section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e3c72;
    position: relative;
    padding-bottom: 0.75rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e3c72;
}

.about-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* Schedule Section */
.schedule-section {
    padding: 4rem 0;
    background: white;
}

.schedule-timeline {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 200px;
}

.loading-spinner {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s;
}

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

.phase-item:hover {
    background: #fef9e3;
}

.phase-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.phase-name {
    font-weight: 600;
    flex: 1;
    color: #1f2937;
}

.phase-dates {
    color: #6b7280;
    font-size: 0.9rem;
}

.phase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-upcoming {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-ended {
    background: #fee2e2;
    color: #991b1b;
}

/* Registration Info */
.registration-info {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h2 {
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.support-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 2rem;
    font-size: 0.9rem;
}

.support-icon {
    font-size: 1.1rem;
}

/* How To Section */
.how-to-section {
    padding: 4rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

.step p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.75rem;
    color: #1e3c72;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.phone-number {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 3rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.8rem;
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .about-grid, .steps-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .support-details {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .phase-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Enhanced Mobile & Android Support */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .description {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .clan-symbol {
        font-size: 3rem;
    }
    
    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .about-section, .how-to-section, .contact-section {
        padding: 2rem 0;
    }
    
    .about-card, .step, .contact-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
    }
    
    .phone-number {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links a {
        padding: 0.4rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Extra Small Devices (Android phones under 480px) */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn-login, .btn-register {
        width: 80%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .phase-item {
        padding: 0.8rem;
    }
    
    .phase-icon {
        font-size: 1.2rem;
    }
    
    .phase-name {
        font-size: 0.9rem;
    }
    
    .phase-dates {
        font-size: 0.75rem;
    }
    
    .support-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .support-icon {
        font-size: 0.9rem;
    }
}

/* Touch-Friendly Adjustments for Mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-login, .btn-register, .whatsapp-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .about-card:active, .step:active, .contact-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}