/* ===================================
   AysimaPOS Landing Page - Base Styles
   Modern SaaS Design - Uses variables.css
   =================================== */

/* ============================================
   DEPRECATED VARIABLES (Backward Compatibility)
   Use new variables.css instead
   These will be removed in future versions
   ============================================ */
:root {
    /* DEPRECATED: Use --primary-500, --primary-600 instead */
    --primary-color: var(--primary-600);
    --primary-dark: var(--primary-700);
    --primary-light: var(--primary-600);
    
    /* DEPRECATED: Use --success-500, --success-600 instead */
    --secondary-color: var(--accent-500);
    --secondary-dark: var(--accent-600);
    
    /* DEPRECATED: Use --gray-800, --gray-700, --gray-600 instead */
    --dark: var(--gray-800);
    --gray-dark: var(--gray-700);
    --gray: var(--gray-500);
    --gray-light: var(--gray-300);
    --gray-lighter: var(--gray-100);
    --white: #FFFFFF;
    
    /* DEPRECATED: Use new gradient variables from variables.css */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-400) 0%, var(--primary-500) 100%);
    
    /* DEPRECATED: Use --font-family-sans instead */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* DEPRECATED: Use --spacing-20 instead */
    --section-padding: 80px 0;
    
    /* DEPRECATED: Use --transition-duration-* and --transition-timing-function-* */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* DEPRECATED: Shadows now in variables.css */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Content Width - Modern SaaS Standard (1280px) */
    --content-max-width: 1280px;
    --content-narrow-width: 900px;
    --content-reading-width: 720px;
}

/* Section Divider - İnce siyah çizgi ile ayırma */
.landing-section {
    position: relative;
}

.landing-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    height: 1px;
    background: var(--gray-300);
}

.landing-section:last-of-type::after {
    display: none;
}

/* Section background constraint to 1280px */
.section-bg-constrained {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Professional Content Width Container */
.content-container {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content-container-narrow {
    max-width: var(--content-narrow-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content-container-reading {
    max-width: var(--content-reading-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-container,
    .content-container-narrow,
    .content-container-reading {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 1400px) {
    .content-container,
    .content-container-narrow,
    .content-container-reading {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Override Bootstrap container for wider layout (1280px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--gray-800);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-4);
    color: var(--gray-800);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

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

p {
    margin-bottom: var(--spacing-4);
    color: var(--gray-700);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-duration-200) var(--transition-timing-function-out);
}

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

/* Section Styles */
section {
    padding: var(--spacing-20) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-12);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Highlight Gradient for H1 Keywords */
.highlight-gradient {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.highlight-gradient::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* Button Styles */
.btn {
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-duration-300) var(--transition-timing-function-out);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(178, 66, 25, 0.35);
}

.btn-primary:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 57, 21, 0.45);
    color: #ffffff;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-duration-300) var(--transition-timing-function-out);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Typography */
@media (max-width: 992px) {
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2, .section-title {
        font-size: var(--font-size-3xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .section-title {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    section {
        padding: var(--spacing-16) 0;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   CUSTOM ALERT BOXES - NO ADMINLTE DEPENDENCY
   Landing page için özel alert sistemi
   AdminLTE ile çakışma olmadan çalışır
   ============================================ */

.landing-alert {
    padding: 1.5rem 2rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid !important;
    background-color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.landing-alert:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.landing-alert i {
    font-size: 1.2rem !important;
    vertical-align: middle !important;
}

.landing-alert h6 {
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
}

.landing-alert p {
    margin-bottom: 0.75rem !important;
}

.landing-alert p:last-child {
    margin-bottom: 0 !important;
}

.landing-alert .btn {
    margin-top: 0.5rem !important;
}

/* Light Alert - White/Gray */
.landing-alert--light {
    background-color: #ffffff !important;
    border-color: var(--gray-200) !important;
    color: var(--gray-700) !important;
}

.landing-alert--light h6 {
    color: var(--gray-800) !important;
}

.landing-alert--light .text-muted {
    color: var(--gray-500) !important;
}

.landing-alert--light .text-primary {
    color: var(--primary-color) !important;
}

/* Info Alert - Blue */
.landing-alert--info {
    background-color: var(--primary-50) !important;
    border-color: var(--primary-500) !important;
    color: var(--primary-800) !important;
}

.landing-alert--info i {
    color: var(--primary-500) !important;
}

/* Success Alert - Green */
.landing-alert--success {
    background-color: var(--success-50) !important;
    border-color: var(--success-500) !important;
    color: var(--success-800) !important;
}

.landing-alert--success i {
    color: var(--success-500) !important;
}

/* Warning Alert - Yellow */
.landing-alert--warning {
    background-color: var(--warning-50) !important;
    border-color: var(--warning-500) !important;
    color: var(--warning-800) !important;
}

.landing-alert--warning i {
    color: var(--warning-500) !important;
}

/* Danger Alert - Red */
.landing-alert--danger {
    background-color: var(--danger-50) !important;
    border-color: var(--danger-500) !important;
    color: var(--danger-800) !important;
}

.landing-alert--danger i {
    color: var(--danger-500) !important;
}

/* Primary Alert - Purple */
.landing-alert--primary {
    background-color: var(--accent-50) !important;
    border-color: var(--primary-color) !important;
    color: var(--accent-700) !important;
}

.landing-alert--primary i {
    color: var(--primary-color) !important;
}

/* Responsive Alert */
@media (max-width: 767px) {
    .landing-alert {
        padding: 1.25rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .landing-alert h6 {
        font-size: 1rem !important;
    }
    
    .landing-alert i {
        font-size: 1.1rem !important;
    }
}

/* Info Callout - Custom Alert Style (Global Component) */
.info-callout {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-100) 100%);
    border-left: 4px solid var(--primary-600);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.info-callout-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.info-callout-content {
    flex: 1;
}

.info-callout-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0 0 0.5rem 0;
}

.info-callout-text {
    font-size: 0.95rem;
    color: var(--primary-800);
    line-height: 1.6;
    margin: 0;
}

.info-callout-link {
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: underline;
}

.info-callout-link:hover {
    color: var(--primary-800);
    text-decoration: none;
}

/* Internal Link Section - Wrapper for info callouts */
.internal-link-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
    padding: var(--spacing-4) 0;
}

/* ===================================
   MOBILE-SPECIFIC ENHANCEMENTS
   =================================== */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Mobile CTAs: Full-width, prominent */
@media (max-width: 767px) {
    /* Full-width CTA buttons on mobile */
    .btn-primary,
    .btn-lg {
        width: 100%;
        font-size: 1.125rem; /* 18px */
        padding: 1rem 2rem; /* 16px 32px */
        min-height: 48px;
    }
    
    /* Hero CTA stack */
    .hero-buttons {
        flex-direction: column !important;
        gap: var(--spacing-3);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Mobile-friendly cards */
    .card {
        margin-bottom: var(--spacing-5);
    }
    
    /* Mobile section padding */
    .section-padding {
        padding-top: 3.75rem; /* 60px */
        padding-bottom: 3.75rem;
    }
    
    /* Larger touch targets for links in mobile */
    a:not(.btn) {
        padding: 0.25rem 0;
    }
    
    /* Mobile forms: Full-width inputs */
    .form-control,
    .form-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 48px;
    }
    
    /* Mobile feature cards */
    .feature-card {
        margin-bottom: var(--spacing-4);
    }
}
