/* Cold Stone Creamery Community Pages - CSS */

:root {
    /* Cold Stone Brand Colors */
    --cs-maroon: #8B1538;
    --cs-maroon-dark: #6B1028;
    --cs-cream: #FDF5E6;
    --cs-gold: #C9A227;
    --cs-brown: #4A3728;

    /* UI Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Status Colors */
    --success: #10B981;
    --error: #EF4444;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    color: var(--gray-900);
}

/* ============================================
   Header
   ============================================ */

.header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
}

.logo-location {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: var(--cs-maroon);
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cs-maroon);
    background: var(--cs-cream);
}

.nav-link-cta {
    background: var(--cs-maroon);
    color: var(--white) !important;
}

.nav-link-cta:hover {
    background: var(--cs-maroon-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--cs-maroon);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    padding: 1rem;
    text-decoration: none;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   Hero Sections
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--cs-maroon) 0%, var(--cs-maroon-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-donations {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.hero-influencers {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   Content Sections
   ============================================ */

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--cs-maroon);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* ============================================
   Cards Grid
   ============================================ */

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

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

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

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

.card h3 {
    color: var(--cs-maroon);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ============================================
   Forms
   ============================================ */

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cs-maroon);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--cs-maroon);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--cs-maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--cs-maroon);
    border: 2px solid var(--cs-maroon);
}

.btn-secondary:hover {
    background: var(--cs-cream);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Messages
   ============================================ */

.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.message.show {
    display: block;
}

.message-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.message-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ============================================
   Home Page Specific
   ============================================ */

.home-hero {
    background: linear-gradient(135deg, var(--cs-maroon) 0%, var(--cs-maroon-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.home-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.home-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-8px);
}

.program-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.program-card h2 {
    color: var(--cs-maroon);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ============================================
   Social Media Inputs
   ============================================ */

.social-input-group {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.social-prefix {
    background: var(--gray-100);
    padding: 0.875rem 1rem;
    border-radius: 8px 0 0 8px;
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
    border-right: none;
}

.social-input-group .form-input {
    border-radius: 0;
}

.social-input-group .follower-input {
    border-radius: 0 8px 8px 0;
    max-width: 150px;
}

@media (max-width: 600px) {
    .social-input-group {
        grid-template-columns: 1fr;
    }
    .social-prefix {
        border-radius: 8px;
        border-right: 2px solid var(--gray-200);
    }
    .social-input-group .form-input {
        border-radius: 8px;
    }
    .social-input-group .follower-input {
        max-width: 100%;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links p,
.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
