/* ==========================================================================
   TerfiGYS - Konular Sayfası Modüler Stilleri (assets/css/pages/categories.css)
   ========================================================================== */

/* Page Header & Hero Container */
.gd-cat-header-wrap {
    margin-bottom: 24px;
}

.gd-cat-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gd-cat-title {
    margin: 0;
    font-size: 19px;
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-cat-title-inst {
    color: #2563eb;
}

.gd-cat-title-branch {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.gd-cat-title-sep {
    color: #cbd5e1;
    margin: 0 5px;
}

.gd-cat-subtitle {
    margin: 6px 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.gd-cat-timer-box {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gd-cat-timer-icon-wrap {
    width: 38px;
    height: 38px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gd-cat-timer-text-wrap {
    font-size: 13px;
    color: #475569;
    line-height: 1.3;
}

.gd-cat-timer-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd-cat-timer-val {
    color: #1e293b;
    font-weight: 600;
}

/* Empty State */
.gd-cat-empty-state {
    grid-column: 1/-1;
    text-align: center;
    background: #fff;
    padding: 60px;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.gd-cat-empty-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.gd-cat-empty-text {
    color: #475569;
    font-size: 16px;
    margin: 0;
}

/* Category Card Custom Extras */
.gd-cat-card-meta {
    font-size: 12px;
    color: #475569;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-cat-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-cat-progress-box {
    margin-top: 15px;
}

.gd-cat-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gd-cat-progress-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd-cat-progress-val {
    font-size: 11px;
    font-weight: 800;
}

.gd-cat-progress-val.completed {
    color: #10b981;
}

.gd-cat-progress-val.ongoing {
    color: #2563eb;
}

.gd-cat-progress-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.gd-cat-progress-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.gd-cat-progress-bar.completed {
    background: #10b981;
}

.gd-cat-progress-bar.ongoing {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* Guest Modal Custom Styling */
.gd-guest-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gd-guest-modal-card {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

.gd-guest-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-guest-modal-badge {
    width: 70px;
    height: 70px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.gd-guest-modal-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
}

.gd-guest-modal-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.gd-guest-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-guest-btn-reg {
    padding: 12px;
    background: #047857;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
}

.gd-guest-btn-reg:hover {
    background: #036348;
}

.gd-guest-btn-login {
    padding: 12px;
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
}

.gd-guest-btn-login:hover {
    background: #f1f5f9;
}

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

/* Category Grid Responsive Layout (Screenshot Birebir 3 Sütunlu Tasarım) */
.category-grid-v3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    padding-bottom: 40px !important;
}

.category-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 140px !important;
}

.category-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.category-card-body {
    padding: 20px 20px 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
}

.category-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.category-card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}



.category-actions.dual-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.category-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn.btn-workspace {
    background: #4338ca;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.15);
}

.category-btn.btn-workspace:hover {
    background: #3730a3;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 56, 202, 0.25);
}

.category-btn.btn-solve {
    background: #047857;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 4px rgba(4, 120, 87, 0.15);
}

.category-btn.btn-solve:hover {
    background: #036348;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(4, 120, 87, 0.25);
}

@media (max-width: 1200px) {
    .category-grid-v3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .category-grid-v3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 640px) {
    .category-grid-v3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gd-cat-header-content {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .gd-cat-timer-box {
        width: 100%;
    }

    .category-card {
        padding: 16px;
        border-radius: 14px;
    }

    .category-title {
        font-size: 15px;
    }

    .category-actions.dual-actions {
        flex-direction: row;
        gap: 8px;
    }

    .category-btn {
        padding: 10px 8px;
        font-size: 12.5px;
    }
}
