/* === 1. CSS VARIABLES & RESET === */
:root {
    --color-primary: #6C3EFF;
    --color-accent:  #FF6B6B;
    --color-bg:      #0F0F1A;
    --color-bg2:     #1A1A2E;
    --color-text:    #FFFFFF;
    --color-muted:   #A0A0C0;
    --radius-card:   16px;
    --radius-btn:    50px;
    --font-main:     'Inter', sans-serif;
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 2. TYPOGRAPHY === */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

p {
    margin-bottom: 1.5rem;
}

/* === 3. LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* === 4. HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(15, 15, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 15, 26, 0.98);
    padding: 8px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-text);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-bg2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    gap: 20px;
    transition: 0.4s ease-in-out;
}

.mobile-nav.open {
    right: 0;
}

/* === 5. BUTTONS === */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    padding: 14px 32px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(108, 62, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(108, 62, 255, 0.5);
}

.btn-secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    border-radius: var(--radius-btn);
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

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

/* === 6. CARDS === */
.card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(108, 62, 255, 0.5);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-text {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* === 7. HERO === */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0F0F1A 0%, #1A0A2E 50%, #0F0F1A 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blob {
    position: absolute;
    border-radius: 50%;
    -webkit-filter: blur(100px);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    width: 600px; height: 600px;
    background: var(--color-primary);
    top: -150px; right: -150px;
}

.blob-2 {
    width: 500px; height: 500px;
    background: var(--color-accent);
    bottom: -100px; left: -100px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 40px); }
}

/* === 8. SECTION TITLES === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* === 9. STEPS === */
.step {
    position: relative;
    counter-increment: step-counter;
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
}

/* === 10. FAQ / ACCORDION === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-muted);
}

/* Cevap metninden sonra pürüzsüz boşluk bırakmak için */
.faq-answer::after {
    content: "";
    display: block;
    height: 24px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* === 11. PRICING === */
.price-card.featured {
    border: 2px solid var(--color-primary);
    background: rgba(108, 62, 255, 0.08);
    transform: scale(1.05);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 20px 0;
}

.price-tag span {
    font-size: 1rem;
    color: var(--color-muted);
}

.price-features {
    list-style: none;
    margin: 30px 0;
}

.price-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* === 12. TABLE === */
.table-wrapper {
    overflow-x: auto;
    background: var(--color-bg2);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th {
    padding: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.check { color: #4CAF50; font-weight: bold; }
.cross { color: #FF6B6B; font-weight: bold; }

/* === 13. MOCKUP CARDS === */
.mockup-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 1000px;
}

.mockup-card {
    width: 300px;
    height: 500px;
    background: white;
    border-radius: 12px;
    padding: 40px 20px;
    color: #333;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.mockup-card.dark {
    background: #1A1A2E;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.mockup-card h3 { font-family: serif; font-size: 1.8rem; margin-bottom: 20px; }
.mockup-card .date { font-weight: bold; color: var(--color-primary); }
.mockup-card .location { font-size: 0.9rem; color: #666; margin-top: 10px; }

.mockup-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.mockup-tab {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 0.9rem;
}

.mockup-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* === 14. BREADCRUMB === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.breadcrumb a:hover { color: white; }
.breadcrumb span { color: var(--color-primary); font-weight: 600; }

/* === 15. CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, rgba(108, 62, 255, 0.2), rgba(255, 107, 107, 0.2));
    border: 1px solid rgba(108, 62, 255, 0.3);
    border-radius: var(--radius-card);
    padding: 80px 40px;
    text-align: center;
}

/* === 16. FLOATING CTA === */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta .btn-primary {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 62, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(108, 62, 255, 0.8); }
}

/* === 17. FOOTER === */
footer {
    background: var(--color-bg2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo { margin-bottom: 20px; display: inline-block; }
.footer-brand p { color: var(--color-muted); font-size: 0.95rem; line-height: 1.8; }

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--color-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col a:hover { color: white; padding-left: 5px; }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* === 18. ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* === 19-25. PAGE SPECIFIC STYLES === */
[data-page="tasarla"] .theme-preview {
    min-height: 600px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

[data-page="dugun"] .mockup-card {
    transform: rotateY(-5deg);
}

[data-page="dugun"] .mockup-card:hover {
    transform: rotateY(0deg);
}

/* === 26. RESPONSIVE === */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero { text-align: center; padding-top: 100px; padding-bottom: 60px; }
    .hero-buttons { justify-content: center; gap: 15px; }
    .section { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .price-card.featured { transform: scale(1); }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .header-inner .btn-primary { display: none; }
    
    /* Mockup Responsive Fixes */
    .mockup-container { flex-direction: column; align-items: center; gap: 30px; }
    .mockup-tabs { flex-wrap: wrap; justify-content: center; }
    .mockup-card { width: 100%; max-width: 320px; height: auto; min-height: 480px; }
    .cta-banner { padding: 40px 20px; }
}

/* Global Footer Bottom Centering */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    width: 100%;
}
