/* style.css */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Inter:wght@400;600;700&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --bg-color: #ffffff;
    --text-color: #222222; /* Dark Grey/Almost Black */
    --link-color: #7a367b; /* Purple */
    --link-hover-color: #5a245b; /* Darker Purple for hover */
    
    /* Button Colors - Updated for new style */
    --button-bg-color: #ffffff; /* White background */
    --button-text-color-new: #222222; /* Black text for white buttons */
    --button-border-color-new: #222222; /* Black border */
    --button-hover-bg-color-new: #f8f8f8; /* Very light grey for hover */
    
    --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --button-hover-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    
    --icon-size: 22px; 
    --font-family: 'Comic Neue', cursive; 
    --font-family-sans-serif: 'Inter', sans-serif; 
    --border-radius-main: 12px; 
    /* --border-radius-button: 8px; Will be overridden for squiggly effect */
}

html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit; /* Apply box-sizing to all elements */
}

body {
    background-color: var(--bg-color);
    background-image: url('https://ido.wtf/sunbird/static/prickle_assets/decorations/background.png'); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    color: var(--text-color);
    font-family: var(--font-family);
    font-weight: 400;
    margin: 0;
    padding: 25px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;       
    text-align: center;   
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    overflow-x: hidden; /* Ensure body also prevents horizontal scroll */
}

/* --- Main Container --- */
.main-container {
    background-color: rgba(255, 255, 255, 0.92); 
    padding: 30px 35px; 
    border-radius: var(--border-radius-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.04); 
    width: 100%;
    max-width: 600px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
}

/* --- Logos & Subtitle --- */
.title-logo {
    max-width: 70%; 
    height: auto;   
    max-height: 90px; 
}

.subtitle {
    font-size: 1.5em; 
    font-weight: 700; 
    color: var(--text-color);
    margin-top: -5px; 
    margin-bottom: 15px; 
    font-family: var(--font-family); 
    line-height: 1.3; 
}

.sunbird-logo-link {
    display: inline-block; 
    margin-top: 20px; 
}

.sunbird-logo {
    max-width: 130px;
    height: auto;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.sunbird-logo:hover {
    opacity: 1;
}

/* --- General Link Styles (for non-button links) --- */
a.social-link, .sunbird-logo-link { 
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    font-weight: 700; 
    font-family: var(--font-family); 
}

a.social-link:hover, .sunbird-logo-link:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* --- Button Group & Individual Buttons --- */
.button-group {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 18px; 
    width: 100%;
}

.button-link {
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: var(--button-bg-color); /* White background */
    color: var(--button-text-color-new); /* Black text */
    padding: 14px 24px; /* Adjusted padding slightly */
    /* Irregular border-radius for a 'hand-drawn' feel */
    border-radius: 10px 12px 11px 13px / 12px 10px 13px 11px; 
    border: 3px solid var(--button-border-color-new); /* Thick black border */
    width: 100%; 
    max-width: 380px; 
    text-align: center; 
    box-shadow: var(--button-shadow);
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    font-weight: 700; 
    font-size: 1.1em; 
    text-decoration: none; 
    font-family: var(--font-family); 
}

.button-link:hover {
    transform: translateY(-3px) rotate(-0.5deg); /* Slight playful rotation on hover */
    box-shadow: var(--button-hover-shadow);
    background-color: var(--button-hover-bg-color-new); /* Light grey hover */
    border-color: var(--button-border-color-new); /* Keep border black or slightly darker if preferred */
    text-decoration: none; 
}

.button-link:active {
    transform: translateY(-1px) rotate(0.2deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background-color: #f0f0f0; /* Slightly darker active state */
}

/* Remove specific button background colors as they are all white now */
/* .steam-button {} */
/* .android-button {} */
/* .ios-button {} */


/* --- Icons within Buttons and Links --- */
.icon {
    font-size: var(--icon-size); 
    width: var(--icon-size);     
    height: var(--icon-size);    
    margin-right: 12px;        
    line-height: 1; 
}
.button-link .icon {
    color: var(--button-text-color-new); /* Black icons for white buttons */
}

/* Specific icon colors can be re-added if desired, e.g., for platform branding */
/* .steam-button .icon { color: #1b2838; } */
/* .android-button .icon { color: #3DDC84; } */
/* .ios-button .icon { color: #007AFF; } */

/* Social Link Icons - specific colors */
.social-link .fa-x-twitter { /* Updated class and color */
    color: var(--text-color); /* Black, same as general text */
} 


/* --- Social Links Section --- */
.social-links {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px; 
    margin-top: 10px; 
    min-height: 20px; 
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 1.05em; 
    font-family: var(--font-family); 
}


/* --- Responsive Adjustments --- */
@media (min-width: 500px) and (orientation: landscape), (min-width: 620px) { 
    .main-container {
        padding: 35px 45px; 
        max-width: 700px; 
         gap: 25px; 
    }
    .subtitle {
        margin-bottom: 20px; 
        font-size: 1.6em; 
    }
    .button-group {
        flex-direction: row; 
        justify-content: center;
        flex-wrap: wrap; 
        gap: 20px; 
    }

    .button-link {
        width: auto; 
        min-width: 220px; 
        padding: 14px 20px; 
    }

    .social-links {
        flex-direction: row; 
        justify-content: center;
        gap: 30px; 
        margin-top: 15px;
    }
    .title-logo {
        max-height: 100px;
    }
}

@media (min-width: 800px) {
    .main-container {
        padding: 40px 50px;
        gap: 30px; 
    }
    .subtitle {
        font-size: 1.75em; 
    }
     .title-logo {
        max-height: 110px;
    }
}
