/* ClickTherapy Design System
 * A comprehensive design system for consistent UI/UX
 */

/* ===== TYPOGRAPHY ===== */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins/poppins-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins/poppins-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/nunito/nunito-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/nunito/nunito-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/nunito/nunito-600.woff2') format('woff2');
}

/* ===== COLOR SYSTEM ===== */
:root {
    /* Primary Colors */
    --primary: #f8a5c2;
    --primary-light: #ffc2d7;
    
    /* Secondary Colors */
    --secondary: #a5c8f8;
    --secondary-light: #c2e0ff;
    
    /* Accent Colors */
    --accent-1: #f8e9a5;
    --accent-2: #a5f8d3;
    --accent-3: #d5a5f8;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-100: #f9f7f7;
    --gray-200: #f0f0f0;
    --gray-300: #e0e0e0;
    --gray-400: #c0c0c0;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --black: #000000;
    
    /* Functional Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Background Colors */
    --background: var(--gray-100);
    --card-bg: var(--white);
    
    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-500);
    --text-on-primary: var(--white);
    --text-on-secondary: var(--white);
    
    /* Border Colors */
    --border-color: var(--gray-300);
    
    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);
}



/* ===== SPACING SYSTEM ===== */
:root {
    --space-xxs: 0.25rem;  /* 4px */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-xxl: 3rem;     /* 48px */
    --space-xxxl: 4rem;    /* 64px */
}

/* ===== TYPOGRAPHY SYSTEM ===== */
:root {
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Nunito', sans-serif;
    
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-md: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-xxl: 1.5rem;   /* 24px */
    --font-size-xxxl: 2rem;    /* 32px */
    --font-size-display: 3rem; /* 48px */
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-loose: 1.8;
    
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* ===== BORDER RADIUS ===== */
:root {
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --radius-circle: 50%;
}

/* ===== SHADOWS ===== */
:root {
    --shadow-sm: 0 1px 2px var(--shadow-color);
    --shadow-md: 0 4px 6px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color);
    --shadow-inner: inset 0 2px 4px var(--shadow-color);
}

/* ===== TRANSITIONS ===== */
:root {
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===== Z-INDEX LAYERS ===== */
:root {
    --z-below: -1;
    --z-normal: 0;
    --z-above: 1;
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
}

/* ===== CONTAINER WIDTHS ===== */
:root {
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-xxl: 1536px;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--background);
    transition: background-color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-display);
}

h2 {
    font-size: var(--font-size-xxxl);
}

h3 {
    font-size: var(--font-size-xxl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: var(--primary);
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-pill);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }
    
    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
    
    .lg\:hidden {
        display: none;
    }
    
    .lg\:flex {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .xl\:block {
        display: block;
    }
    
    .xl\:hidden {
        display: none;
    }
    .xl\:flex {
        display: flex;
    }
}

/* ===== PAYMENT METHODS ===== */
.payment-methods-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
    align-items: center;
}

.payment-method {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.payment-method img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.payment-method:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Footer Payment Methods */
.footer-payment-methods {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footer-payment-methods .section-header h3 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.footer-payment-method {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: var(--gray-100);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-payment-method:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-payment-method img {
    max-width: 100%;
    height: auto;
    max-height: 30px;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.footer-payment-method:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Mobile Responsiveness for Payment Methods */
@media (max-width: 768px) {
    .payment-methods-section {
        padding: 40px 0;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .payment-method {
        padding: 15px;
    }
    
    .payment-method img {
        max-height: 35px;
    }
    
    .footer-payment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
    
    .footer-payment-method {
        padding: 12px;
    }
    
    .footer-payment-method img {
        max-height: 25px;
    }
}

@media (max-width: 480px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}