/* ========================================
   DDI Akademi - Main Styles
   Glass Morphism + Horizon UI Dashboard
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Soft Altın Aksan Paleti */
    --primary-gradient: linear-gradient(135deg, #eebd2b 0%, #d4a820 100%);
    --primary-color: #eebd2b;
    --secondary-color: #d4a820;
    --accent-color: #eebd2b;
    --accent-secondary: #d4a820;
    
    /* Gold/Altın Tonları (Aksan) */
    --gold-primary: #eebd2b;
    --gold-secondary: #d4a820;
    --gold-light: #f5d563;
    --gold-dark: #b8920f;
    --gold-gradient: linear-gradient(135deg, #eebd2b 0%, #d4a820 100%);
    
    /* Sarı Tonları */
    --navy-primary: #eebd2b;
    --navy-secondary: #d4a820;
    --navy-light: #f5d563;
    --navy-dark: #b8920f;
    
    /* Glass Colors - Beyaz Buzlu Cam */
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-bg-light: rgba(255, 255, 255, 0.50);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: rgba(31, 38, 135, 0.07);
    
    /* Text Colors - Koyu Metin */
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --text-muted: rgba(26, 26, 26, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #fdfcfb 0%, #f8eec0 40%, #eebd2b 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(238, 189, 43, 0.2), rgba(244, 164, 76, 0.15));
    top: -200px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(248, 238, 192, 0.3), rgba(238, 189, 43, 0.15));
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(253, 252, 251, 0.4), rgba(212, 168, 32, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(245, 213, 99, 0.2), rgba(184, 146, 15, 0.1));
    bottom: 20%;
    right: 10%;
    animation: float4 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-50px, 50px) rotate(90deg); }
    50% { transform: translate(-100px, 0) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(50px, 50px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #333333;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px var(--spacing-xl) var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.full-width {
    grid-column: 1 / -1;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: var(--spacing-3xl) 0;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: rgba(26, 26, 26, 0.8);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.07);
}

.hero-badge i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--glass-border);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Illustration */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.floating-card i {
    font-size: 2rem;
    color: #eebd2b;
}

.floating-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

.card-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.card-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 4.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-20px) translateX(-50%); }
}

.card-2, .card-4 {
    animation-name: floatCardY;
}

@keyframes floatCardY {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 20px)); }
}

/* Quick Stats Section */
.quick-stats {
    margin-top: var(--spacing-3xl);
}

.stats-card {
    padding: var(--spacing-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-light);
}

.stat-box .stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eebd2b, #d4a820);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: #1a1a1a;
}

.stat-box .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-box .stat-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.notification {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    box-shadow: 0 8px 32px var(--glass-shadow);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.notification.success {
    border-left: 4px solid #43e97b;
}

.notification.error {
    border-left: 4px solid #f5576c;
}

.notification.info {
    border-left: 4px solid #eebd2b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 80px var(--spacing-md) var(--spacing-2xl);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .bg-shapes {
        display: none;
    }
    
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(238, 189, 43, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 189, 43, 0.6);
}

/* Selection Styling */
::selection {
    background: rgba(238, 189, 43, 0.3);
    color: #1a1a1a;
}

/* Focus Styling */
:focus {
    outline: 2px solid rgba(238, 189, 43, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid rgba(238, 189, 43, 0.5);
    outline-offset: 2px;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(238, 189, 43, 0.3);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-color, #eebd2b);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-actions .btn-cookie-accept {
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    background: var(--primary-color, #eebd2b);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-consent-actions .btn-cookie-accept:hover {
    background: #d4a826;
    transform: translateY(-1px);
}

.cookie-consent-actions .btn-cookie-info {
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    background: transparent;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.cookie-consent-actions .btn-cookie-info:hover {
    border-color: var(--primary-color, #eebd2b);
    color: #333;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Touch devices: disable hover transforms */
@media (hover: none) {
    .glass-card:hover,
    .workshop-card:hover,
    .product-card:hover,
    .announcement-card:hover,
    .lento-feature-card:hover,
    .article-item:hover,
    .stat-box:hover,
    .stat-item:hover {
        transform: none !important;
    }
}

/* Reduced motion preference */
@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;
    }
    .bg-shapes {
        display: none;
    }
}
