/* ==========================================================================
   Components - Buttons, Cards, Forms, Navigation
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Flash Messages
   -------------------------------------------------------------------------- */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: flashIn 0.3s ease;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-primary);
}

.flash-success {
    border-left-color: var(--brand-accent);
    background: var(--bg-light);
}

.flash-error {
    border-left-color: #c0392b;
}

.flash-warning {
    border-left-color: var(--brand-secondary);
}

.flash-info {
    border-left-color: var(--brand-primary);
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
   Theme Toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--bg-light);
    border-color: var(--brand-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hide icons based on theme */
[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* Default (light theme) */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: var(--bg-white);
}

/* -----------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

/* Action Cards (Hero) */
.action-card {
    flex: 1;
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: var(--brand-primary);
    transform: translateX(5px);
}

.action-card h3 {
    font-size: var(--text-base);
    color: var(--brand-primary);
}

.action-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.action-card span {
    font-size: var(--text-2xl);
    color: var(--brand-primary);
}

/* Service Cards */
.service-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    color: var(--brand-secondary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.service-card h3 {
    color: var(--brand-primary);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

/* Event Items */
.event-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.event-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.event-date {
    text-align: center;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.event-date .month {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.event-info h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.event-info p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.event-arrow {
    font-size: var(--text-2xl);
    color: var(--brand-accent);
    transition: all var(--transition-base);
}

.event-item:hover .event-arrow {
    color: var(--brand-primary);
    transform: translateX(5px);
}

/* Why Us Items */
.why-us-item {
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
}

.why-us-item strong {
    display: block;
    color: var(--brand-primary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.why-us-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */
.quote-mark {
    font-family: var(--font-heading);
    font-size: 10rem;
    color: var(--brand-primary);
    opacity: 0.3;
    line-height: 0.8;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-style: italic;
    color: var(--brand-primary);
}

.quote-author {
    margin-top: var(--space-md);
    color: var(--text-secondary);
    font-style: normal;
}

/* -----------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.divider {
    width: 100px;
    height: 2px;
    background: var(--brand-primary);
    margin: var(--space-lg) 0;
}
