/* ==========================================================================
   APP.CSS — Shared Base Styles for Vize Danışmanlık
   Used by ALL pages. Includes reset, variables, typography, utilities,
   buttons, badges, forms, cards, alerts, and animations.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray-800);
    background-color: var(--white);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --navy: #1a365d;
    --navy-light: #2d4a7c;
    --hero-bg: #0b1426;
    --hero-bg-alt: #0f1d35;
    --hero-accent-1: #06d6a0;
    --hero-accent-2: #0ea5e9;
    --accent-orange: #e67e22;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-py: 80px;
    --section-py-mobile: 48px;

    /* Borders */
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--hero-accent-1), var(--hero-accent-2));
    --gradient-hero: linear-gradient(135deg, var(--hero-bg), var(--hero-bg-alt));
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

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

/* --------------------------------------------------------------------------
   4. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

.text-danger {
    color: var(--danger);
}

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

.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;
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    border: 2px solid transparent;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: transparent;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* --------------------------------------------------------------------------
   6. BADGES
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-sm {
    font-size: 0.6875rem;
    padding: 2px 8px;
}

/* --------------------------------------------------------------------------
   6b. TEXT UTILITIES
   -------------------------------------------------------------------------- */
.text-danger {
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   7. FORM ELEMENTS
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--gray-800);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-btn);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--hero-accent-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   8. CARD
   -------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

/* --------------------------------------------------------------------------
   9. FLASH / ALERT MESSAGES
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

/* --------------------------------------------------------------------------
   10. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* --------------------------------------------------------------------------
   12. FOCUS STATES (Accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--hero-accent-2);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.navbar-cta:focus-visible {
    outline: 2px solid var(--hero-accent-1);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.15);
}

/* --------------------------------------------------------------------------
   13. FLASH MESSAGES
   -------------------------------------------------------------------------- */
.flash-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--radius-btn);
    font-size: 0.9375rem;
    font-weight: 500;
    max-width: 400px;
    animation: flashSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    box-shadow: var(--shadow-lg);
}

.flash-success {
    background: #065f46;
    color: var(--white);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flash-error {
    background: #991b1b;
    color: var(--white);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.flash-message.flash-out {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   14. WHATSAPP FAB
   -------------------------------------------------------------------------- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .flash-message {
        left: 16px;
        right: 16px;
        bottom: 80px;
        max-width: none;
    }
}


/* ==========================================================================
   DISCLAIMER BAR
   ========================================================================== */
.disclaimer-bar {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .disclaimer-bar {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* --------------------------------------------------------------------------
   15. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

