/*
Theme Name: Dijitalify Premium
Theme URI: https://dijitalify.com
Author: Burak ERK
Author URI: https://dijitalify.com
Description: A premium, soft-aesthetic, mobile-first WordPress theme tailored for digital products and SaaS solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dijitalify
*/

/* ==========================================================================
   1. CSS Variables & Reset (Soft Aesthetic)
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-bg: #f8f9fa; /* Soft off-white */
    --clr-surface: #ffffff; /* Pure white for cards */
    --clr-text-main: #2d3748; /* Soft dark slate */
    --clr-text-muted: #718096;
    
    /* Brand Accent - Soft Purple/Blue */
    --clr-primary: #667eea;
    --clr-primary-hover: #5a67d8;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(102, 126, 234, 0.15);
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Mobile first padding */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ==========================================================================
   4. Header (Mobile First & Glassmorphism)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-branding a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text-main);
    letter-spacing: -0.03em;
}

.site-branding img {
    max-height: 40px;
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--clr-text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Navigation - Mobile Default */
.main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--clr-surface);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
}

.main-navigation.is-open {
    right: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-navigation a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

.header-cta {
    display: none; /* Hide on mobile by default, show in menu if needed */
}

/* Desktop Header */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .main-navigation ul {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .main-navigation a {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .mobile-cta {
        display: none !important;
    }
    
    .desktop-cta {
        display: block;
    }
}

/* ==========================================================================
   5. Landing Page (Hero, Features, Soft Aesthetic)
   ========================================================================== */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, #f0f4ff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a202c 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--clr-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 { font-size: 4rem; }
}

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

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-widget h4 {
    color: #fff;
}

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

.footer-widget a {
    color: #a0aec0;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

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

/* ==========================================================================
   7. Standard Pages & Posts (.entry-content formatting)
   ========================================================================== */
.default-page-wrapper {
    padding: 140px 0 80px; /* Top padding clears the fixed header */
}

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

.entry-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.entry-content {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    line-height: 1.8;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

.entry-content h2 { font-size: 1.8rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }
.entry-content h3 { font-size: 1.5rem; }

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--clr-primary);
    background: var(--clr-surface);
    box-shadow: var(--shadow-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--clr-text-muted);
}

.entry-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin: 2rem auto;
}

.entry-content a {
    color: var(--clr-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.entry-content a:hover {
    color: var(--clr-primary-hover);
}
