/* ==================== 
   Smart Global Tools - Main Stylesheet
   ==================== */

/* CSS Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #3b82f6;
    --background: #f9fafb;
    --foreground: #111827;
    --card: #ffffff;
    --card-border: #f3f4f6;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.main {
    flex: 1;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media (min-width: 768px) {
    .nav { height: 80px; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

/* New Improved Logo */
.logo-icon-new {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo-icon-new {
        width: 40px;
        height: 40px;
    }
}

.logo-icon-new svg {
    width: 100%;
    height: 100%;
}

/* Logo Text - Always show full name */
.logo-text-full {
    display: block;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (min-width: 400px) {
    .logo-text-full {
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .logo-text-full {
        font-size: 1.25rem;
    }
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu { display: flex; }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(30, 64, 175, 0.08);
}

.nav-link i {
    width: 16px;
    height: 16px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.nav-dropdown-trigger:hover {
    color: var(--foreground);
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-dropdown-trigger.active {
    color: var(--primary);
    background-color: rgba(30, 64, 175, 0.08);
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    padding: 0.5rem;
    z-index: 1000;
    margin-top: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: all 0.15s;
}

.dropdown-item:hover {
    background-color: rgba(30, 64, 175, 0.06);
    color: var(--primary);
}

.dropdown-item.active {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.dropdown-item:hover i,
.dropdown-item.active i {
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.5rem 0;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
    transition: background-color 0.2s;
}

.nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}

/* Mobile Menu */
.nav-menu.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
}

.nav-menu.show .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
}

/* Mobile Dropdown */
.nav-menu.show .nav-dropdown {
    width: 100%;
}

.nav-menu.show .nav-dropdown-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
}

.nav-menu.show .nav-dropdown-menu {
    position: static;
    display: none !important;
    box-shadow: none;
    border: none;
    background: var(--background);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    min-width: 100%;
}

.nav-menu.show .nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}

.nav-menu.show .nav-dropdown:hover .nav-dropdown-menu {
    display: none !important;
}

.nav-menu.show .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block !important;
}

.nav-menu.show .dropdown-item {
    padding: 0.625rem 1rem;
}

/* Desktop dropdown - show on hover */
@media (min-width: 1024px) {
    .nav-dropdown-menu {
        display: none !important;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary {
    background-color: white;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--background);
    border-color: var(--muted-light);
}

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

.btn-full {
    width: 100%;
}

/* ==================== Cards ==================== */
.card {
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .card { padding: 2rem; }
}

.card-lg {
    padding: 2rem;
}

@media (min-width: 768px) {
    .card-lg { padding: 2.5rem; }
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-card-icon i {
    width: 28px;
    height: 28px;
    color: white;
}

.tool-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.tool-card-description {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    transition: gap 0.2s;
}

.tool-card:hover .tool-card-link {
    gap: 0.5rem;
}

/* ==================== Form Elements ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: rgba(249, 250, 251, 0.5);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input-lg {
    height: 56px;
    font-size: 1.125rem;
}

textarea.form-input {
    height: auto;
    min-height: 120px;
    padding: 1rem;
    resize: vertical;
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero { padding: 6rem 0; }
}

@media (min-width: 1024px) {
    .hero { padding: 8rem 0; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.5), rgba(255, 255, 255, 0.8), rgba(243, 232, 255, 0.5));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-description { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==================== Sections ==================== */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section { padding: 6rem 0; }
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.5);
}

.section-gradient {
    background: linear-gradient(135deg, rgba(249, 250, 251, 1), rgba(219, 234, 254, 0.3));
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title { font-size: 2.25rem; }
}

.section-description {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Grid Layouts ==================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==================== Stats ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background-color: rgba(30, 64, 175, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.stat-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ==================== Features ==================== */
.feature {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background-color: rgba(30, 64, 175, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ==================== Tool Page Styles ==================== */
.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tool-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.tool-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .tool-title { font-size: 2.25rem; }
}

.tool-description {
    font-size: 1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--foreground);
}

.back-link i {
    width: 16px;
    height: 16px;
}

/* ==================== Dropzone ==================== */
.dropzone {
    border: 2px dashed #bfdbfe;
    background-color: rgba(239, 246, 255, 0.5);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover,
.dropzone.active {
    border-color: var(--primary-light);
    background-color: rgba(219, 234, 254, 0.5);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
    margin: 0 auto 1rem;
}

.dropzone-text {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ==================== Result Box ==================== */
.result-box {
    background-color: var(--background);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-box-primary {
    background-color: rgba(30, 64, 175, 0.08);
}

.result-box-success {
    background-color: rgba(16, 185, 129, 0.08);
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.result-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--foreground);
    word-break: break-all;
}

.result-value-lg {
    font-size: 1.125rem;
    color: var(--primary);
}

/* ==================== Calculator ==================== */
.calc-display {
    background-color: #111827;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
}

.calc-expression {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.calc-value {
    font-size: 2.25rem;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    font-family: inherit;
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-btn-number {
    background-color: var(--background);
    color: var(--foreground);
}

.calc-btn-number:hover {
    background-color: var(--border);
}

.calc-btn-operator {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary);
}

.calc-btn-operator:hover {
    background-color: rgba(30, 64, 175, 0.2);
}

.calc-btn-equals {
    background-color: var(--primary);
    color: white;
}

.calc-btn-equals:hover {
    background-color: var(--primary-dark);
}

.calc-btn-clear {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.calc-btn-clear:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

.calc-btn-memory {
    background-color: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    font-size: 0.875rem;
}

.calc-btn-memory:hover {
    background-color: rgba(139, 92, 246, 0.2);
}

.calc-btn-span-2 {
    grid-column: span 2;
    aspect-ratio: auto;
    padding: 1rem;
}

/* ==================== Video Container ==================== */
.video-container {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== Tabs ==================== */
.tabs {
    display: flex;
    background-color: var(--border);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--foreground);
}

.tab.active {
    background-color: white;
    color: var(--foreground);
    box-shadow: var(--shadow);
}

.tab i {
    width: 16px;
    height: 16px;
}

/* ==================== Alerts ==================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-info {
    background-color: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-warning .alert-icon { color: var(--warning); }
.alert-info .alert-icon { color: var(--primary); }

.alert-text {
    font-size: 0.875rem;
}

.alert-warning .alert-text { color: #92400e; }
.alert-info .alert-text { color: var(--primary); }

/* ==================== Platform Badges ==================== */
.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.platform-badge i {
    width: 16px;
    height: 16px;
}

.platform-youtube { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }
.platform-instagram { background-color: rgba(236, 72, 153, 0.1); color: #db2777; }
.platform-facebook { background-color: rgba(37, 99, 235, 0.1); color: #2563eb; }
.platform-linkedin { background-color: rgba(29, 78, 216, 0.1); color: #1d4ed8; }
.platform-twitter { background-color: rgba(17, 24, 39, 0.1); color: #111827; }

/* ==================== Footer ==================== */
.footer {
    background-color: white;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .footer { padding: 4rem 0; }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links a i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Footer Social Media */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link i, .social-link svg {
    width: 20px;
    height: 20px;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-whatsapp {
    background: #25D366;
    color: white;
}

.social-email {
    background: var(--primary);
    color: white;
}

/* ==================== Prose (SEO Content) ==================== */
.prose {
    max-width: 65ch;
    color: var(--muted);
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.hidden { display: none; }

.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-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Gradient Backgrounds */
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.bg-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success Icon Animation */
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon i {
    width: 32px;
    height: 32px;
    color: var(--success);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Selection */
::selection {
    background-color: rgba(30, 64, 175, 0.2);
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
