/*
Theme Name: ThinkMoney
Theme URI: https://thinkmoney.in
Description: India's First AI-Native Financial Intelligence Platform - Revolutionary fintech theme with AI-powered decision making, OTP authentication, and comprehensive financial product comparison
Version: 1.0.0
Author: ThinkMoney
Author URI: https://thinkmoney.in
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thinkmoney
Tags: finance, ai, comparison, loans, credit-cards, insurance, responsive, pwa
*/

/* ===================================
   THINKMONEY BRAND COLORS
   =================================== */
:root {
    /* Primary Brand Colors */
    --tm-navy: #1e3a5f;
    --tm-teal: #2d9d92;
    
    /* UI Colors */
    --tm-white: #FFFFFF;
    --tm-light-gray: #F5F7FA;
    --tm-gray: #E5E7EB;
    --tm-dark-gray: #6B7280;
    --tm-text: #2C3E50;
    --tm-text-light: #64748B;
    
    /* Semantic Colors */
    --tm-success: #10B981;
    --tm-error: #EF4444;
    --tm-warning: #F59E0B;
    --tm-info: #3B82F6;
    
    /* Gradients */
    --tm-gradient: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-teal) 100%);
    --tm-gradient-light: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(45, 157, 146, 0.05) 100%);
    
    /* Spacing */
    --tm-spacing-xs: 0.5rem;
    --tm-spacing-sm: 1rem;
    --tm-spacing-md: 1.5rem;
    --tm-spacing-lg: 2rem;
    --tm-spacing-xl: 3rem;
    --tm-spacing-2xl: 4rem;
    
    /* Border Radius */
    --tm-radius-sm: 0.375rem;
    --tm-radius-md: 0.5rem;
    --tm-radius-lg: 0.75rem;
    --tm-radius-xl: 1rem;
    --tm-radius-full: 9999px;
    
    /* Shadows */
    --tm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --tm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --tm-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --tm-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--tm-font-sans);
    color: var(--tm-text);
    background-color: var(--tm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--tm-navy);
    margin-bottom: var(--tm-spacing-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--tm-spacing-sm);
    color: var(--tm-text-light);
}

a {
    color: var(--tm-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tm-navy);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--tm-spacing-md);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--tm-spacing-md);
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--tm-spacing-md);
}

.section {
    padding: var(--tm-spacing-2xl) 0;
}

.section-sm {
    padding: var(--tm-spacing-xl) 0;
}

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

.text-gradient {
    background: var(--tm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--tm-radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--tm-gradient);
    color: white;
    box-shadow: var(--tm-shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--tm-shadow-lg);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--tm-navy);
    color: white;
}

.btn-teal {
    background: var(--tm-teal);
    color: white;
}

.btn-teal:hover {
    background: #238276;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: white;
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-spacing-lg);
    box-shadow: var(--tm-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--tm-shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    border-bottom: 1px solid var(--tm-gray);
    padding-bottom: var(--tm-spacing-sm);
    margin-bottom: var(--tm-spacing-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tm-navy);
    margin-bottom: 0.25rem;
}

/* ===================================
   FORMS
   =================================== */
.form-group {
    margin-bottom: var(--tm-spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--tm-navy);
    margin-bottom: var(--tm-spacing-xs);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--tm-gray);
    border-radius: var(--tm-radius-md);
    transition: all 0.3s ease;
    font-family: var(--tm-font-sans);
}

.form-input:focus {
    outline: none;
    border-color: var(--tm-teal);
    box-shadow: 0 0 0 3px rgba(45, 157, 146, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--tm-gray);
    border-radius: var(--tm-radius-md);
    background: white;
    cursor: pointer;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: var(--tm-spacing-xs);
    cursor: pointer;
}

.form-error {
    color: var(--tm-error);
    font-size: 0.875rem;
    margin-top: var(--tm-spacing-xs);
}

.form-success {
    color: var(--tm-success);
    font-size: 0.875rem;
    margin-top: var(--tm-spacing-xs);
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--tm-spacing-xl) 0;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ===================================
   LOADING STATES
   =================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--tm-gray);
    border-top-color: var(--tm-teal);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===================================
   ACCESSIBILITY
   =================================== */
.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;
}

:focus-visible {
    outline: 2px solid var(--tm-teal);
    outline-offset: 2px;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .no-print {
        display: none !important;
    }
}
