/* ===== GospeCoin Site-wide Custom CSS ===== */

/* Root variables */
:root {
    --primary-color: #0D3B66;
    --secondary-color: #FFD700;
    --accent-color: #1E90FF;
    --bg-color: #F5F5F5;
    --text-color: #1C1C1C;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Global Styles */
body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    padding-bottom: 0; /* default, overridden on mobile */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Buttons (global) */
button {
    font-family: var(--body-font);
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: bold;
    transition: all 0.3s ease;
}

button.primary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: bold;
}

header nav a {
    margin-left: 20px;
    color: #fff;
    font-weight: 500;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 200px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(20px) translateX(20px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1.3s ease forwards;
}

.hero button {
    font-size: 1rem;
    animation: fadeInUp 1.6s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 80px 20px;
    background: #fff;
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 30px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Dynamic GPC card */
.gpc-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 20px;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons img {
    height: 24px;
    margin: 0 6px;
    vertical-align: middle;
}

footer a {
    color: var(--secondary-color);
    margin: 0 10px;
}

/* Bottom Navigation for Mobile (PWA-style) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 100;
}

.bottom-nav a {
    color: var(--primary-color);
    text-align: center;
    font-size: 0.75rem;
}

.bottom-nav svg {
    display: block;
    margin: 0 auto 4px auto;
    width: 24px;
    height: 24px;
}

/* Forms (Auth pages) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 8px rgba(30,144,255,0.3);
}

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 60px 20px;
    background: var(--bg-color);
}

.auth-page form {
    max-width: 250px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease forwards;
}

.auth-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-page p {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Error/validation */
.input-error {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: -12px;
    margin-bottom: 10px;
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
    header nav {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

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

    .hero {
        padding: 80px 20px 120px 20px;
    }

    .auth-page {
        padding: 60px 20px;
    }

    .auth-page form {
        width: 100%;
        max-width: 250px;
    }
}

/* Optional: small viewport vertical adjustment */
@media screen and (max-height: 600px) {
    .auth-page {
        justify-content: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
