/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-bottom: 40px;
}

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

/* Header */
header {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .container {
    height: 100%;
    padding: 0 20px;
}

.logo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    gap: 10px;
    padding: 5px 0;
}

.logo {
    height: auto;
    width: auto;
    max-height: 56px;
    max-width: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    object-fit: contain;
    justify-self: center;
    align-self: center;
    grid-column: 1;
}

.logo:hover {
    transform: scale(1.05);
}

.header-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-self: center;
    align-self: center;
    grid-column: 2;
    white-space: nowrap;
    min-width: 140px; /* Minimum button size for usability */
    max-height: 48px;
}

.header-linkedin-btn svg {
    width: 14px;
    height: 14px;
}

.header-linkedin-btn:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #2c5f8d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-self: center;
    align-self: center;
    grid-column: 1;
    white-space: nowrap;
    min-width: 120px; /* Minimum button size for usability */
    max-height: 48px;
}

.header-back-btn svg {
    width: 14px;
    height: 14px;
}

.header-back-btn:hover {
    background-color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.header-back-btn::before {
    content: "← ";
}

/* Subpages with back button: 3-column layout */
.header-back-btn ~ .logo {
    grid-column: 2;
}

.header-back-btn ~ .logo ~ .header-linkedin-btn {
    grid-column: 3;
}

/* Adjust grid for subpages */
.logo-container:has(.header-back-btn) {
    grid-template-columns: 1fr 2fr 1fr;
}

/* When screen is narrow (buttons would be too small), hide logo and go back to 2 columns */
@media (max-width: 768px) {
    .logo-container:has(.header-back-btn) {
        grid-template-columns: 1fr 1fr;
    }

    .header-back-btn ~ .logo {
        display: none;
    }

    .header-back-btn ~ .logo ~ .header-linkedin-btn {
        grid-column: 2;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
}

.event-logo {
    max-width: 375px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.event-date {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4fc3f7;
}

.tagline {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* About Section */
.about {
    padding: 60px 0;
    background: white;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #1e3a5f;
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    color: #555;
}

/* Share Buttons */
.share-buttons {
    margin-top: 40px;
    text-align: center;
}

.share-buttons h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e3a5f;
}

.share-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: white;
}

.facebook-btn {
    background-color: #1877f2;
}

.facebook-btn:hover {
    background-color: #145dbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.linkedin-btn {
    background-color: #0077b5;
}

.linkedin-btn:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.meetup-btn {
    background-color: #f64060;
}

.meetup-btn:hover {
    background-color: #d63649;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 64, 96, 0.4);
}

/* CTA Section */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90d9 100%);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: #0077b5;
    color: white;
}

.btn-primary:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: #5a6c7d;
    color: white;
}

.btn-secondary:hover {
    background-color: #3d4f5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: white;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #1e3a5f;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.email-link {
    font-size: 1.1rem;
    color: #1e3a5f;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #1e3a5f;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #1e3a5f;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #1e3a5f;
    color: white;
    text-align: center;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 0 10px;
    width: 100%;
    overflow: hidden;
}

footer p {
    display: none;
}

.footer-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    width: 100%;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Show full text by default, hide short text */
.footer-btn .btn-text-full {
    display: inline;
}

.footer-btn .btn-text-short {
    display: none;
}

.footer-btn:hover {
    background-color: #005885;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.4);
}

.footer-btn.secondary {
    background-color: #2c5f8d;
}

.footer-btn.secondary:hover {
    background-color: #1e3a5f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }

    .speaker-detail,
    .schedule-section {
        margin-top: 60px !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .event-date {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .about h2,
    .cta h2,
    .contact h2 {
        font-size: 2rem;
    }

    .about p {
        font-size: 1rem;
    }

    .share-button-group {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .event-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    /* Mobile phone size - further shrink elements */
    .logo {
        max-height: 52px;
    }

    .header-linkedin-btn,
    .header-back-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 3px;
        min-width: 100px; /* Slightly smaller minimum on mobile */
    }

    .header-linkedin-btn svg,
    .header-back-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .event-date {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .event-logo {
        max-width: 187px;
    }

    .logo-container {
        gap: 20px;
    }

    .logo {
        max-height: 180px;
    }

    /* Footer adjustments for mobile - shorter text */
    footer .container {
        gap: 8px;
        padding: 0 8px;
    }

    .footer-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .footer-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .footer-btn img {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Hide full text, show short text on mobile */
    .footer-btn .btn-text-full {
        display: none;
    }

    .footer-btn .btn-text-short {
        display: inline;
    }
}
