/* Variables now in color.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px; /* Mobile-first constraint */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.logo-area {
    width: 110px;
    height: 110px;
    background-color: var(--secondary-color); /* Dark background for the logo */
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 20px; /* Padding to prevent logo from touching edges */
}

.logo-area img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    padding-bottom: 9px;
    padding-right: 0px;
    padding-left: 1px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

p.subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
    background: var(--bg-panel);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-icon.large-icon {
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.social-instagram:hover { color: #E1306C; }
.social-facebook:hover { color: #1877F2; }
.social-tiktok:hover { color: #00f2ea; text-shadow: 2px 2px 0px #ff0050; }
.social-whatsapp:hover { color: #25D366; }
.social-youtube:hover { color: #FF0000; }
.social-strava:hover { color: #FC4C02; }
.social-linkedin:hover { color: #0A66C2; }

.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
    background: var(--bg-panel);
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 50px; /* Pill shape */
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-card i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.link-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Color icons for neutral buttons by default */
.link-card:not([class*="btn-"]) i {
    /* color: var(--primary-color); */
}

/* Brand Specific Icon Colors */
.link-card.btn-strava i { color: #FC4C02; }
.link-card.btn-linkedin i { color: #0A66C2; }
.link-card.btn-youtube i { color: #FF0000; }
.link-card.btn-tiktok i { color: #00f2ea; text-shadow: 1px 1px 0px #ff0050; }
/* WhatsApp already handled by btn-whatsapp class but let's ensure icon is white on green button */
.link-card.btn-whatsapp i { color: white; }

.link-card.highlight {
    background: white;
    color: var(--primary-color);
    font-weight: 800;
}

.link-card.highlight:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* Race Specific Button Styles - Colored by Default */
.link-card.btn-marathon {
    background: var(--color-marathon);
    border-color: var(--color-marathon);
    color: white;
}
.link-card.btn-marathon:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
}

.link-card.btn-30km {
    background: var(--color-30km);
    border-color: var(--color-30km);
    color: white;
}
.link-card.btn-30km:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4);
}

.link-card.btn-21km {
    background: var(--color-21km);
    border-color: var(--color-21km);
    color: #1a1a1a; /* Dark text for light background */
}
.link-card.btn-21km:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(217, 224, 33, 0.4);
}

.link-card.btn-5km {
    background: var(--color-5km);
    border-color: var(--color-5km);
    color: white;
}
.link-card.btn-trail {
    background: var(--color-trail);
    border-color: var(--color-trail);
    color: white;
}
.link-card.btn-kids {
    background: var(--color-kid);
    border-color: var(--color-kid);
    color: white;
}

.link-card.btn-5km:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(249, 160, 27, 0.4);
}

/* Miriam Button - Always Visible */
.link-card.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
    font-weight: 800;
}
.link-card.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: scale(1.02);
}

.simple-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: color 0.2s;
}

.simple-link:hover {
    color: white;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin: 15px 0 5px;
    text-align: center;
    width: 100%;
}

footer {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* Font Awesome override for specific brands if needed */
.fa-tiktok:before { content: "\e07b"; }
