/* ============================================
   UKBA.COM.TR - UNIFIED DESIGN SYSTEM
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;

    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    --header-height: 60px;
    --transition: all 0.2s ease;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
/* --- HEADER --- */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow);
}

.main-header {
    height: var(--header-height);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #daa520;
    /* Gold Line */
}

.sub-header {
    background: #fdfbf7;
    /* Slight cream for religious feel */
    color: #444;
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    font-family: 'Merriweather', serif;
    /* Verify font availability or use separate import */
}

.sub-header:hover {
    background: #f3f0e8;
}

.date-line {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.action-line {
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

/* Custom Header Buttons */
.header-right .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mihmandar {
    background: var(--accent);
    /* Orange */
    color: white;
}

.btn-logout {
    background: white;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* --- BUTTONS --- */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1a252f;
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: #d35400;
    text-decoration: none;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #1e8449;
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    text-decoration: none;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    border-radius: var(--radius);
}

.btn-category {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

.btn-category:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* --- CARDS --- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* --- MESSAGES --- */
.success-msg {
    background: #d1fae5;
    color: #065f46;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--success);
    margin-bottom: 20px;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--danger);
    margin-bottom: 20px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--info);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   FORM SYSTEM - UNIFIED STANDARD
   ============================================ */

/* Form Section Container */
.form-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Legacy .form-group support */
.form-group,
.field {
    margin-bottom: 20px;
}

.form-group label,
.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* Input Styling - All Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Select specific */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--accent);
}

/* File Input */
input[type="file"] {
    padding: 12px;
    border-style: dashed;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- MAP --- */
#map,
#map-selector {
    height: 400px;
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    z-index: 1;
    margin-top: 16px;
}

/* --- PREMIUM FLOATING LABEL SYSTEM --- */
.field-box {
    position: relative;
    margin-bottom: 24px;
}

.field-box .input {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    color: var(--text);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.field-box .input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.field-box .label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card);
    padding: 0 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

/* Floating state */
.field-box .input:focus~.label,
.field-box .input:not(:placeholder-shown)~.label {
    top: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Highlight variant */
.field-box.highlight .input {
    border-width: 3px;
    border-color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.field-box.highlight .label {
    color: var(--primary);
    font-weight: 600;
}

/* Textarea floating label fix */
.field-box textarea.input~.label {
    top: 16px;
    transform: none;
}

.field-box textarea.input:focus~.label,
.field-box textarea.input:not(:placeholder-shown)~.label {
    top: -10px;
}

/* --- GRID SYSTEM --- */
.grid-2,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 20px;
    }

    /* --- MOBILE ADMIN (CARD VIEW) --- */
    .admin-layout {
        display: block;
        /* Stack sidebar and content */
    }

    /* Force Table to behave like a stack of cards */
    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    /* Hide Header */
    .admin-table thead {
        display: none;
    }

    /* Card Style for Rows */
    .admin-table tr {
        margin-bottom: 20px;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
    }

    /* Cell Styles */
    .admin-table td {
        padding: 10px 0;
        padding-left: 0;
        /* reset */
        text-align: left;
        border-bottom: 1px solid #f1f1f1;
        position: relative;
        display: flex;
        /* Flex to align label and content */
        align-items: center;
        /* Align vertically center */
        flex-direction: row;
        /* Inline Layout */
        flex-wrap: nowrap;
        /* FORCE NO WRAP */
        gap: 10px;
        /* Space between label and content */
    }

    .admin-table td:last-child {
        border-bottom: none;
        /* Inherit row layout for inline "Actions: Buttons" */
    }

    /* Pseudo-Label from data-label */
    .admin-table td::before {
        content: attr(data-label) ": ";
        /* Add colon */
        font-weight: 700;
        color: var(--text-muted);
        min-width: 100px;
        /* Fixed width for alignment */
    }

    /* Specific tweaks */
    /* Specific tweaks */
    .admin-table td[data-label="İşlemler"] {
        /* standard spacing */
    }

    .action-buttons-wrapper {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .admin-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .btn.btn-accent {
        width: 100%;
        /* Full width add button */
        justify-content: center;
        margin-bottom: 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* --- IMAGE PREVIEW --- */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.image-preview-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    max-width: 800px;
    margin: 40px auto;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.btn-close:hover {
    color: var(--danger);
}

/* Slider in modal */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    border: none;
    padding: 0;
}

/* Image selector grid */
.image-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--thumb-size, 120px), 1fr));
    gap: 12px;
}

.thumb-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.thumb-item:hover {
    transform: scale(1.03);
}

.thumb-item.selected {
    border-color: var(--accent);
}

/* --- MAP --- */
/* --- MAP --- */
#map {
    height: 400px;
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    z-index: 1;
    transition: height 0.3s ease;
}

/* Fullscreen Map Mode */
body.map-fullscreen {
    overflow: hidden;
    /* Prevent scrolling */
}

body.map-fullscreen #map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

body.map-fullscreen .site-header-wrapper,
body.map-fullscreen #map-controls,
body.map-fullscreen main>*:not(#map) {
    display: none !important;
    /* Hide everything else */
}

/* Custom Map Controls */
.leaflet-control-custom {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.leaflet-control-custom:hover {
    background: white;
    transform: scale(1.05);
}

/* Transparent controls for Fullscreen Mode */
.leaflet-control-transparent {
    background: rgba(255, 255, 255, 0.25) !important;
    /* Semi-transparent */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #333;
}

.leaflet-control-transparent:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

#map-selector {
    height: 400px;
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    z-index: 1;
}

/* --- UTILITY --- */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================
   UPLOAD SYSTEM STYLES
   ============================================ */

/* Upload Limits Info */
.upload-limits-info {
    margin-bottom: 20px;
}

.upload-limits-info .alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid #5a67d8;
}

.upload-limits-info .alert-info strong {
    font-weight: 700;
    font-size: 1.05rem;
}

.upload-limits-info ul {
    margin: 12px 0 0 20px;
    padding: 0;
    list-style: none;
}

.upload-limits-info li {
    padding: 4px 0;
    font-size: 0.95rem;
}

.upload-limits-info li::before {
    content: "✓ ";
    margin-right: 8px;
    font-weight: bold;
}

/* Progress Bar Container */
.total-upload-progress {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.total-upload-progress label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 32px;
    background: #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
    animation: pulse 1s ease-in-out infinite;
}

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

.total-upload-progress small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* File Progress Container */
#file-progress-container {
    margin: 20px 0;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

#file-progress-container h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

/* Individual File Items */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.file-item:hover {
    background: #e9ecef;
    border-color: var(--accent);
}

.file-item span {
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-progress {
    flex: 1;
}

.file-item-progress small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.file-item-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.file-item-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-item span {
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    .file-item-progress {
        width: 100%;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* --- LEGACY SUPPORT --- */
.role-badge {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 10px;
}

.calendar-info {
    text-align: right;
    font-size: 0.9rem;
}

.hijri {
    display: block;
    color: var(--accent);
    font-weight: 600;
}

#map-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.btn-period {
    background: white;
    border: 1px solid #ddd;
    color: var(--primary);
}

.btn-period:hover {
    background: var(--primary);
    color: white;
}

.filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- ADMIN TABLE --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 20px;
}

.admin-table thead {
    background: var(--primary);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Admin Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    height: fit-content;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    margin-bottom: 10px;
}

.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
}

.admin-sidebar a:hover {
    background: var(--bg);
    color: var(--accent);
    text-decoration: none;
}

.badge-red {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 8px;
}

/* --- SOHBET LIST (HOMEPAGE) --- */
.sohbet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sohbet-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.sohbet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sohbet-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary);
}

.sohbet-body p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.sohbet-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;

    /* Truncate to 1 line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.gender-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- RELIGIOUS DAYS MODAL --- */
.religious-days-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-card {
    background: #f8fafc;
    border: 3px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.day-card.highlight {
    background: #fff7ed;
    border-color: var(--accent);
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.1);
}

.day-info h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.05rem;
}

.day-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

.day-countdown {
    text-align: right;
    min-width: 100px;
}

.counter-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.day-card.highlight .counter-badge {
    background: var(--accent);
}

.calendar-btn-wrapper {
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-btn-wrapper:hover {
    transform: scale(1.1);
}


.gender-badge.male {
    background: #dbeafe;
    color: #1e40af;
}

.gender-badge.female {
    background: #fce7f3;
    color: #9d174d;
}

.gender-badge.mixed {
    background: #f3e8ff;
    color: #7c3aed;
}

.btn-period.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- BUTTONS --- */
.btn,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-size: 1rem;
    gap: 8px;
    line-height: normal;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background: #1a252f;
    opacity: 0.9;
}

.btn-danger {
    background: var(--danger);
    color: white !important;
}

.btn-danger:hover {
    background: #c0392b;
    opacity: 0.9;
}

.btn-accent {
    background: var(--accent);
    color: white !important;
}

.btn-accent:hover {
    background: #d35400;
    opacity: 0.9;
}

.btn-info {
    background: var(--info);
    color: white !important;
}

.btn-info:hover {
    background: #2980b9;
    opacity: 0.9;
}

.btn-success {
    background: var(--success);
    color: white !important;
}

.btn-success:hover {
    background: #27ae60;
    opacity: 0.9;
}