/* AKFE Gübre - Corporate Modern Theme */

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

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Slider
   ======================================== */

#heroSlider .slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#heroSlider .slide.active {
    display: block;
    opacity: 1;
}

#heroSlider .slide-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--delay, 0s);
}

#heroSlider .slide.active .slide-element {
    opacity: 1;
    transform: translateY(0);
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 2rem;
    background-color: #1ab964;
}

/* ========================================
   Header
   ======================================== */

#mainHeader.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   Typography
   ======================================== */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Custom Scrollbar
   ======================================== */

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

::selection {
    background: rgba(26, 185, 100, 0.15);
    color: #107a42;
}

/* ========================================
   Focus States
   ======================================== */

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #1ab964;
    outline-offset: 2px;
}

/* ========================================
   Dynamic Colors
   ======================================== */

.bg-brand-100 { background-color: #d9f9e6; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-cyan-100 { background-color: #cffafe; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-green-100 { background-color: #dcfce7; }

.text-brand-600 { color: #0f9950; }
.text-amber-600 { color: #d97706; }
.text-orange-600 { color: #ea580c; }
.text-blue-600 { color: #2563eb; }
.text-cyan-600 { color: #0891b2; }
.text-emerald-600 { color: #059669; }
.text-green-600 { color: #16a34a; }

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: #0f9950;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #107a42;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: white;
    color: #334155;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #0f9950;
    color: #0f9950;
}

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

.card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #1ab964;
}

/* ========================================
   Forms
   ======================================== */

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.input:focus {
    border-color: #1ab964;
    box-shadow: 0 0 0 3px rgba(26, 185, 100, 0.1);
}

.input::placeholder {
    color: #94a3b8;
}

/* ========================================
   Utilities
   ======================================== */

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* ========================================
   Mobile Menu
   ======================================== */

#mobileMenu.active {
    display: block;
}

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

@media print {
    header, footer {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* ========================================
   Blog article typography (.akfe-article)
   Tailwind CDN typography eklentisi yok; .prose yerine kullanılır.
   ======================================== */

.akfe-article {
    color: #44403c;
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 100%;
    overflow-wrap: break-word;
}
.akfe-article > * + * { margin-top: 1.1em; }
.akfe-article h2 {
    font-size: 1.6rem; line-height: 1.3; font-weight: 700; color: #292524;
    margin-top: 2.2em; margin-bottom: .6em; padding-bottom: .35em;
    border-bottom: 2px solid #dcfce7;
}
.akfe-article h3 {
    font-size: 1.25rem; line-height: 1.4; font-weight: 700; color: #292524;
    margin-top: 1.8em; margin-bottom: .4em;
}
.akfe-article h4 { font-size: 1.075rem; font-weight: 700; color: #292524; margin-top: 1.5em; }
.akfe-article p { margin-bottom: 0; }
.akfe-article a { color: #15803d; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.akfe-article a:hover { color: #166534; }
.akfe-article strong { color: #292524; font-weight: 700; }
.akfe-article ul, .akfe-article ol { padding-left: 1.5em; }
.akfe-article ul { list-style: disc; }
.akfe-article ol { list-style: decimal; }
.akfe-article li { margin-top: .4em; padding-left: .25em; }
.akfe-article li::marker { color: #16a34a; }
.akfe-article blockquote {
    border-left: 4px solid #16a34a; background: #f0fdf4; padding: 1em 1.25em;
    border-radius: 0 .75rem .75rem 0; color: #365314; font-style: italic;
}
.akfe-article img { max-width: 100%; height: auto; border-radius: .75rem; }
.akfe-article figure { margin: 1.75em 0; }
.akfe-article figcaption { font-size: .875rem; color: #78716c; text-align: center; margin-top: .5em; }
.akfe-article .table-wrap, .akfe-article table { width: 100%; }
.akfe-article table {
    display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem;
    margin: 1.5em 0; -webkit-overflow-scrolling: touch;
}
.akfe-article th, .akfe-article td { border: 1px solid #e7e5e4; padding: .6em .8em; text-align: left; vertical-align: top; }
.akfe-article thead th, .akfe-article tr:first-child th { background: #f0fdf4; color: #14532d; font-weight: 700; }
.akfe-article tbody tr:nth-child(even) td { background: #fafaf9; }
.akfe-article hr { border: 0; border-top: 1px solid #e7e5e4; margin: 2em 0; }
.akfe-article code { background: #f5f5f4; padding: .1em .35em; border-radius: .25rem; font-size: .9em; }
@media (max-width: 640px) {
    .akfe-article { font-size: 1rem; line-height: 1.75; }
    .akfe-article h2 { font-size: 1.35rem; }
    .akfe-article h3 { font-size: 1.15rem; }
}
