/* ============================================
                 TAM İZOLASYON İÇİN ÖZEL SABİT DEĞİŞKENLER
              ============================================ */
:root {
    --gd-primary: #ed1c24;
    --gd-primary-dark: #c41218;
    --gd-primary-light: #ff4d55;
    --gd-secondary: #1a1a1a;
    --gd-secondary-light: #2d2d2d;
    --gd-text-dark: #111111;
    --gd-text-light: #666666;
    --gd-text-lighter: #888888;
    --gd-border: #e5e5e5;
    --gd-border-dark: #d1d1d1;
    --gd-bg-light: #f8f9fa;
    --gd-bg-lighter: #ffffff;
    --gd-bg-dark: #1a1a1a;
    --gd-accent: #ed1c24;
    --gd-shell-bg: #ffffff;

    /* Tipografi */
    --gd-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gd-font-display: 'Montserrat', var(--gd-font-primary);
    --gd-font-readable: 'Roboto', 'Segoe UI', var(--gd-font-primary);

    /* Spacing */
    --gd-space-xs: 0.5rem;
    --gd-space-sm: 1rem;
    --gd-space-md: 1.5rem;
    --gd-space-lg: 2rem;
    --gd-space-xl: 3rem;
    --gd-space-2xl: 4rem;
    --gd-space-3xl: 6rem;

    /* Border Radius */
    --gd-radius-sm: 4px;
    --gd-radius-md: 8px;
    --gd-radius-lg: 12px;
    --gd-radius-xl: 16px;
    --gd-radius-2xl: 24px;

    /* Shadows */
    --gd-shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --gd-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --gd-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --gd-shadow-xl: 0 12px 48px rgba(0,0,0,0.15);

    /* Transitions */
    --gd-transition-fast: 0.2s ease;
    --gd-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gd-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* YALNIZCA BİLEŞEN İÇİNE ÖZEL RESET */
.gd-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
}

.gd-section {
    all: initial;
    font-family: var(--gd-font-primary) !important;
    display: block;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ============================================
             GENEL STİLLER - TAM İZOLASYON
          ============================================ */
.gd-section.gd-kabuk-section {
    background-color: #ffffff !important;
    padding: var(--gd-space-3xl) 0;
}

.gd-container-full {
    width: 100% !important;
    max-width: 1920px !important;
    margin: 0 auto !important;
    padding: 0 max(1.5rem, 5vw) !important;
    position: relative;
}

.gd-text-accent {
    color: var(--gd-accent) !important;
}

/* ============================================
             SECTION HEADERS
          ============================================ */
.gd-section-header {
    margin-bottom: var(--gd-space-2xl);
    width: 100%;
}

.gd-center-header {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.gd-section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--gd-space-md);
    display: inline-block;
    line-height: 1.3;
    font-family: var(--gd-font-primary) !important;
}

.gd-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--gd-space-lg);
    font-family: var(--gd-font-display) !important;
    width: 100%;
    letter-spacing: -0.02em;
    color: var(--gd-text-dark);
}

.gd-section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gd-text-light);
    max-width: 800px;
    line-height: 1.8;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.02px;
    font-family: var(--gd-font-primary) !important;
}

.gd-accent-text {
    background: linear-gradient(135deg, var(--gd-primary) 0%, var(--gd-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: var(--gd-space-sm);
    display: inline-block;
    letter-spacing: 0.02em;
    font-family: var(--gd-font-primary) !important;
}

/* ============================================
             COLORS GRID - KABUK RENKLERİ
          ============================================ */
.gd-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--gd-space-xl);
    margin-top: var(--gd-space-2xl);
    width: 100%;
}

.gd-color-category-card {
    background: white;
    border-radius: var(--gd-radius-xl);
    padding: var(--gd-space-xl);
    box-shadow: var(--gd-shadow-md);
    transition: var(--gd-transition);
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gd-border);
    font-family: var(--gd-font-primary) !important;
}

.gd-color-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gd-shadow-lg);
}

/* TÜM KARTLARIN HOVER ARKA PLAN RENGİ - #f0f0f0 (SADECE NORMAL KARTLAR) */
.gd-color-category-card:not(.gd-featured):not(.gd-research-card):hover {
    background: #f0f0f0 !important;
}

/* MAVİ KABUKLU (FEATURED) KARTI - HOVER'DA ARKA PLAN DEĞİŞMEZ, SABİT KALIR */
.gd-color-category-card.gd-featured:hover {
    background: white !important;
    border-color: var(--gd-primary) !important;
    border-width: 2px !important;
}

.gd-color-category-card.gd-featured {
    border: 2px solid var(--gd-primary);
}

.gd-color-category-card:not(.gd-featured):hover {
    border-color: var(--gd-border);
    border-width: 1px;
}

.gd-featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gd-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--gd-radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    font-family: var(--gd-font-primary) !important;
}

.gd-color-header {
    display: flex;
    align-items: center;
    gap: var(--gd-space-md);
    margin-bottom: var(--gd-space-lg);
}

.gd-color-swatch {
    width: 48px;
    height: 48px;
    border-radius: var(--gd-radius-md);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gd-color-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gd-text-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: var(--gd-font-primary) !important;
}

.gd-color-description {
    color: var(--gd-text-light);
    margin-bottom: var(--gd-space-lg);
    line-height: 1.6;
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02px;
    font-family: var(--gd-font-primary) !important;
}

.gd-color-stats {
    display: flex;
    gap: var(--gd-space-md);
    margin-bottom: var(--gd-space-xl);
    flex-wrap: wrap;
}

.gd-color-stats .gd-stat {
    padding: 0.5rem 1rem;
    background: var(--gd-bg-light);
    border-radius: var(--gd-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gd-text-dark);
    line-height: 1.4;
    white-space: nowrap;
    font-family: var(--gd-font-primary) !important;
}

.gd-color-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gd-space-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-primary);
    text-decoration: none;
    transition: var(--gd-transition);
    margin-top: auto;
    letter-spacing: 0.02em;
    line-height: 1.3;
    font-family: var(--gd-font-primary) !important;
}

.gd-color-link:hover {
    gap: var(--gd-space-sm);
}

.gd-link-arrow {
    transition: transform var(--gd-transition);
    display: inline-block;
}

.gd-color-link:hover .gd-link-arrow {
    transform: translateX(4px);
}

/* AR-GE KARTI - HOVER'DA ARKA PLAN DEĞİŞMEZ, SABİT KALIR */
.gd-color-category-card.gd-research-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--gd-secondary) 0%, var(--gd-secondary-light) 100%);
    color: white;
    border: none !important;
}

.gd-research-card:hover {
    border: none !important;
    border-color: transparent !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
    background: linear-gradient(135deg, var(--gd-secondary) 0%, var(--gd-secondary-light) 100%) !important;
    color: white !important;
}

.gd-research-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gd-research-badge {
    display: inline-block;
    background: var(--gd-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--gd-radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--gd-space-lg);
    align-self: flex-start;
    line-height: 1.3;
    font-family: var(--gd-font-primary) !important;
}

.gd-research-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--gd-space-md);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: white;
    font-family: var(--gd-font-primary) !important;
}

.gd-research-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--gd-space-xl);
    line-height: 1.6;
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02px;
    font-family: var(--gd-font-primary) !important;
}

.gd-research-progress {
    margin-bottom: var(--gd-space-xl);
    width: 100%;
}

.gd-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--gd-space-sm);
    width: 100%;
}

.gd-progress-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--gd-font-primary) !important;
}

.gd-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    font-family: var(--gd-font-primary) !important;
}

.gd-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.gd-progress-fill {
    height: 100%;
    background: var(--gd-primary);
    border-radius: 3px;
    transition: width var(--gd-transition-slow);
}

.gd-research-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gd-space-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: var(--gd-transition);
    margin-top: auto;
    letter-spacing: 0.02em;
    line-height: 1.3;
    font-family: var(--gd-font-primary) !important;
}

.gd-research-link:hover {
    color: var(--gd-primary-light);
    gap: var(--gd-space-sm);
}

/* ============================================
             RESPONSIVE BREAKPOINTS
          ============================================ */

/* GENİŞ EKRAN */
@media (min-width: 1921px) {
    .gd-container-full {
        padding: 0 max(5rem, 10vw) !important;
    }

    .gd-colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
        gap: var(--gd-space-2xl);
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .gd-section.gd-kabuk-section {
        padding: var(--gd-space-2xl) 0;
    }

    .gd-colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: var(--gd-space-lg);
    }

    .gd-color-category-card.gd-research-card {
        grid-column: span 1;
    }

    .gd-container-full {
        padding: 0 max(1.25rem, 4vw) !important;
    }
}

/* MOBİL */
@media (max-width: 768px) {
    .gd-section.gd-kabuk-section {
        padding: var(--gd-space-xl) 0;
    }

    .gd-section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    .gd-section-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .gd-colors-grid {
        grid-template-columns: 1fr;
        gap: var(--gd-space-lg);
    }

    .gd-container-full {
        padding: 0 max(1rem, 5vw) !important;
    }

    .gd-color-category-card {
        padding: var(--gd-space-lg);
    }
}

/* KÜÇÜK MOBİL */
@media (max-width: 480px) {
    .gd-section.gd-kabuk-section {
        padding: var(--gd-space-lg) 0;
    }

    .gd-section-title {
        font-size: 1.5rem;
    }

    .gd-section-subtitle {
        font-size: 0.75rem;
    }

    .gd-colors-grid {
        gap: var(--gd-space-md);
    }

    .gd-color-category-card {
        padding: var(--gd-space-lg);
    }

    .gd-container-full {
        padding: 0 1rem !important;
    }
}

/* ANIMATIONS */
@keyframes gd-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gd-section {
    animation: gd-slideIn 0.6s ease-out forwards;
}

/* PERFORMANCE OPTIMIZATIONS */
.gd-section * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ACCESSIBILITY */
.gd-section :focus-visible {
    outline: 2px solid var(--gd-primary);
    outline-offset: 2px;
    border-radius: var(--gd-radius-sm);
}