/* =================================================================
   SITE-PUBLIC.CSS
   Kullanım Alanları: Giriş (Login) Sayfası, Ana Sayfa, Landing Sayfaları vb.
================================================================= */

/* Modern CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

/* compensate for fixed-top navbar height - only on public layout */
.modern-header + .main-content {
    scroll-padding-top: 64px;
}

/* =============================
   Application Cards (Public)
============================= */
.application-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.application-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.application-card .card-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

.application-card .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.application-card .card-text {
    margin-bottom: .25rem;
    color: #334155;
}

.application-card .card-footer {
    margin-top: auto; /* push footer to bottom */
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column; /* allow mt-auto children to stick to bottom */
}

.application-card .btn {
    border-radius: 10px;
}

.badge-soft-primary {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

/* Ensure button rows align across cards by reserving space for status text */
.application-card .status-area {
    min-height: 22px; /* approx single-line small text height */
}

/* =================================================================
   GENEL VE KULLANILMAYAN (İSTEĞE BAĞLI SİLİNEBİLİR) STILLER
   Not: Aşağıdaki .login-container stilleri .kayu-login-container
   ile benzer işlevi gördüğü için muhtemelen gereksizdir.
================================================================= */

/* Eski Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.login-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Public Layout Header/Footer helpers */
.bg-gradient-primary {
    background: linear-gradient(90deg, var(--primary-dark) 0%, #0ea5e9 100%) !important;
}

.modern-header {
    position: relative;
    z-index: 1030;
}

.modern-header .navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.modern-header .navbar-brand {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modern-header .navbar-brand:hover {
    transform: scale(1.05);
}

.modern-header .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.modern-header .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.modern-header .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.modern-header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.modern-header .btn-light:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0;
    margin-top: 4rem;
}

.modern-footer h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modern-footer a {
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.modern-footer a:hover {
    color: #ffffff;
    text-decoration: underline !important;
}

/* =============================
   HERO SECTION
============================= */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-section .btn {
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* =============================
   FEATURES SECTION
============================= */
.features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.feature-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-card ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.feature-card ul li {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* =============================
   CTA SECTION
============================= */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h3 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-light-custom {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-light-custom:hover {
    background: #f8fafc;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.btn-outline-light-custom {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background: #ffffff;
    color: #667eea;
    transform: translateY(-2px);
}

/* =============================
   INFO CARDS
============================= */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.info-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-card .icon-wrapper i {
    font-size: 1.8rem;
    color: #ffffff;
}

.info-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.info-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .feature-card .card-body {
        padding: 2rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .features-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .feature-card .card-body {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-card h5 {
        font-size: 1.15rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h3 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }

    .modern-footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .hero-section .btn,
    .cta-section .btn {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .feature-card h5 {
        font-size: 1.1rem;
    }

    .feature-card .card-text,
    .feature-card ul li {
        font-size: 0.9rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .info-card .icon-wrapper i {
        font-size: 1.5rem;
    }

    .info-card h5 {
        font-size: 1.1rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }

    .cta-section h3 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* =============================
   UTILITY CLASSES
============================= */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Main content padding for fixed navbar */
.main-content {
    padding-top: 76px;
}

/* Animation delays for staggered effects */
.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}