/* SymClarity Design System - Standardized Typography and Buttons */

/* =============================================================================
   TYPOGRAPHY SYSTEM
   ============================================================================= */

/* Base Typography */
:root {
    --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-display: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    
    /* Line Heights */
    --line-height-tight: 1.1;
    --line-height-normal: 1.3;
    --line-height-relaxed: 1.5;
    --line-height-loose: 1.6;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Typography Classes */
.text-page-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.03em;
    color: #262627;
}

.text-section-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: #1a202c;
}

.text-card-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-normal);
    color: #1a202c;
}

.text-subtitle {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: #1a202c;
}

.text-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-loose);
    color: #718096;
}

.text-body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: #4a5568;
}

.text-small {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: #718096;
}

.text-xs {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    color: #718096;
}

/* =============================================================================
   BUTTON SYSTEM
   ============================================================================= */

:root {
    /* Button Spacing */
    --btn-padding-sm: 0.625rem 1rem;
    --btn-padding-base: 0.875rem 1.5rem;
    --btn-padding-lg: 1rem 2rem;
    
    /* Button Font Sizes */
    --btn-font-size-sm: 0.8rem;
    --btn-font-size-base: 0.875rem;
    --btn-font-size-lg: 1rem;
    
    /* Button Border Radius */
    --btn-radius-sm: 6px;
    --btn-radius-base: 8px;
    --btn-radius-lg: 10px;
    
    /* Button Colors */
    --btn-primary-bg: #262627;
    --btn-primary-hover: #525356;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #e1e4e8;
    --btn-danger-bg: linear-gradient(135deg, #e53e3e, #c53030);
    --btn-danger-hover: linear-gradient(135deg, #c53030, #9c2626);
}

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-base);
    font-family: var(--font-family-primary);
    font-size: var(--btn-font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--btn-radius-base);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px; /* Touch target minimum */
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Sizes */
.btn-sm {
    padding: var(--btn-padding-sm);
    font-size: var(--btn-font-size-sm);
    border-radius: var(--btn-radius-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--btn-padding-lg);
    font-size: var(--btn-font-size-lg);
    border-radius: var(--btn-radius-lg);
    min-height: 52px;
}

/* Button Variants */
.btn-primary {
    background: var(--btn-primary-bg);
    color: white;
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 38, 39, 0.2);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: #262627;
    border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #262627;
    color: #262627;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: var(--btn-danger-bg);
    color: white;
    border-color: #c53030;
}

.btn-danger:hover {
    background: var(--btn-danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.btn-outline {
    background: transparent;
    color: #262627;
    border-color: #cbd5e0;
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #262627;
    color: #262627;
    transform: translateY(-1px);
}

/* Special Button Types */
.btn-icon-only {
    padding: 0.625rem;
    min-width: 44px;
    aspect-ratio: 1;
}

.btn-social {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet and below */
@media (max-width: 768px) {
    .text-page-title {
        font-size: var(--font-size-4xl);
    }
    
    .text-section-title {
        font-size: var(--font-size-2xl);
    }
    
    .text-card-title {
        font-size: var(--font-size-xl);
    }
    
    .text-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .text-description {
        font-size: var(--font-size-base);
    }
    
    /* Button responsive adjustments */
    .btn {
        font-size: 0.8rem;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.875rem 1.75rem;
    }
    
    .btn-social {
        width: 45px;
        height: 45px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .text-page-title {
        font-size: var(--font-size-3xl);
    }
    
    .text-section-title {
        font-size: var(--font-size-xl);
    }
    
    .text-card-title {
        font-size: var(--font-size-lg);
    }
    
    /* Prevent button text wrapping on very small screens */
    .btn {
        font-size: 0.775rem;
        padding: 0.625rem 1rem;
    }
    
    .btn-social {
        width: 42px;
        height: 42px;
    }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Spacing utilities for buttons */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group-center {
    justify-content: center;
}

.btn-group-start {
    justify-content: flex-start;
}

.btn-group-end {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .btn-group {
        gap: 0.5rem;
    }
    
    .btn-group-mobile-stack {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-mobile-stack .btn {
        width: 100%;
        max-width: 300px;
    }
}