/*
 * QRpuz Landing Page - Custom Styles
 * Karpuz teması renk paleti ile modern, dönüşüm odaklı tasarım
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Color Variables (Karpuz Teması)
   ========================================================================== */

:root {
    /* Ana renkler */
    --color-white: #FFFFFF;
    --color-green: #27AE60;
    --color-red: #E74C3C;
    --color-dark: #2C3E50;

    /* Gradient tonları */
    --color-light-green: #2ECC71;
    --color-dark-green: #1E8449;
    --color-light-red: #FF6B6B;
    --color-dark-red: #C0392B;

    /* Gölgeler */
    --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);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-light-red) 0%, var(--color-red) 50%, var(--color-dark-red) 100%);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-dark-red) 50%, var(--color-dark-red) 100%);
}

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

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-green);
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--color-green);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* ==========================================================================
   Cards
   ========================================================================== */

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-green);
}

.featured-plan {
    border-color: var(--color-red);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.2);
}

.featured-plan:hover {
    border-color: var(--color-red);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-light-red), var(--color-red));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-left: 4px solid var(--color-green);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-red);
}

/* ==========================================================================
   Steps (How It Works)
   ========================================================================== */

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-light-green), var(--color-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
    transition: all var(--transition-base);
}

nav a {
    position: relative;
}

nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: width var(--transition-base);
}

nav a:not(.btn-primary):hover::after {
    width: 100%;
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.whatsapp-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--color-green);
    transform: translateY(-3px);
}

/* ==========================================================================
   Modal
   ========================================================================== */

#demo-modal {
    backdrop-filter: blur(5px);
    animation: fadeIn var(--transition-base);
}

#demo-modal.hidden {
    display: none;
}

#demo-modal:not(.hidden) {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

input[type="email"] {
    transition: all var(--transition-base);
}

input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* ==========================================================================
   Gradients & Backgrounds
   ========================================================================== */

.gradient-green {
    background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-green) 50%, var(--color-dark-green) 100%);
}

.gradient-red {
    background: linear-gradient(135deg, var(--color-light-red) 0%, var(--color-red) 50%, var(--color-dark-red) 100%);
}

.gradient-watermelon {
    background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-green) 30%, var(--color-red) 70%, var(--color-dark-red) 100%);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-red));
    margin: 1rem auto;
    border-radius: 2px;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--color-light-green), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--color-light-red), var(--color-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile Optimizations */
@media (max-width: 768px) {

    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-button i {
        font-size: 1.75rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {

    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 2rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Smooth fade in for sections */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for hero images */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scale on hover for interactive elements */
.scale-hover {
    transition: transform var(--transition-base);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .whatsapp-button,
    nav,
    footer {
        display: none;
    }

    body {
        background: white;
    }

    .feature-card,
    .pricing-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .feature-card,
    .pricing-card,
    .testimonial-card {
        border: 2px solid var(--color-dark);
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   Custom Scrollbar (Webkit browsers)
   ========================================================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-green), var(--color-red));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-dark-red));
}

/* ==========================================================================
   Selection Colors
   ========================================================================== */

::selection {
    background: var(--color-green);
    color: white;
}

::-moz-selection {
    background: var(--color-green);
    color: white;
}