/* ---------------------------------------------
   COMPONENTS.CSS — Reusable UI elements
   Studaria — A Scholarly Atelier
----------------------------------------------*/

/* ---------------------------------------------
   BUTTONS
----------------------------------------------*/

.cta-button,
.button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-deep);   /* warm cocoa */
    color: white;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    text-align: center;
}

.cta-button:hover,
.button:hover {
    background: var(--gold);          /* champagne gold hover */
    transform: translateY(-2px);
}

/* Subtle ghost button */
.button-ghost {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--taupe);
    background: transparent;
    color: var(--espresso);
    border-radius: 6px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.button-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
}

/* ---------------------------------------------
   CARDS
----------------------------------------------*/

.card,
.tool-card {
    background: var(--bg-soft);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid var(--sand);
    color: var(--espresso);
    font-family: var(--sans);
    font-size: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover lift */
.card:hover,
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--gold);
}

/* ---------------------------------------------
   SECTION TITLES
----------------------------------------------*/

.section h2 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--espresso);
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
}

/* ---------------------------------------------
   DIVIDERS
----------------------------------------------*/

.divider {
    width: 100%;
    height: 1px;
    background: var(--sand);
    margin: var(--space-xl) 0;
}

/* ---------------------------------------------
   RIBBON (for hero animation)
----------------------------------------------*/

.ribbon {
    width: 100%;
    height: 8px;
    background: var(--gold);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-20%);
}

/* The animation will be added in animations.css */
.hero-ribbon {
    width: 100%;
    height: 6px;
    background: var(--gold);
    opacity: 0;
    border-radius: 3px;
}

/* ---------------------------------------------
   SHADOWS (for consistent elevation)
----------------------------------------------*/

.shadow-soft {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shadow-medium {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.shadow-gold {
    box-shadow: 0 6px 18px rgba(216,192,143,0.25);
}

/* ---------------------------------------------
   BADGES / LABELS
----------------------------------------------*/

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--olive);
    color: var(--espresso);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--sans);
}

.badge-gold {
    background: var(--gold);
    color: white;
}

/* ---------------------------------------------
   TEXT BLOCKS
----------------------------------------------*/

.text-muted {
    color: var(--text-soft);
}

.text-gold {
    color: var(--gold-deep);
}

.text-olive {
    color: var(--olive-deep);
}

/* ---------------------------------------------
   CARDS WITH ICONS (future-proof)
----------------------------------------------*/

.icon-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--sand);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--gold);
}

.icon-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
