/* Alt sayfalar — anasayfa ile uyumlu tasarım sistemi */

.subpage-body {
    background: #f0f4f8;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
}

.sp-main { padding: 32px 0 56px; }

.sp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 32px 28px;
}

@media (max-width: 640px) {
    .sp-card { padding: 24px 18px; border-radius: 16px; }
}

/* Başlık alanı */
.sp-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.sp-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 28px;
}

.sp-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

/* Butonlar */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sp-btn:hover { transform: translateY(-1px); }

.sp-btn-primary {
    background: linear-gradient(135deg, #00b4b6, #009a9c);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,180,182,0.3);
}

.sp-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
}

.sp-btn-block {
    display: flex;
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
}

/* Forum listesi */
.sp-forum-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 16px 20px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-forum-item:hover {
    border-color: #00b4b6;
    box-shadow: 0 4px 16px rgba(0,180,182,0.1);
}

@media (max-width: 768px) {
    .sp-forum-item {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto;
    }
    .sp-forum-meta, .sp-forum-replies { grid-column: 2; text-align: left !important; }
}

.sp-forum-item img { width: 32px; height: auto; }

.sp-forum-topic {
    font-size: 16px;
    font-weight: 700;
    color: #00b4b6;
    text-decoration: none !important;
    display: block;
    margin-bottom: 4px;
}

.sp-forum-topic:hover { color: #0d4f56; }

.sp-forum-author { font-size: 14px; color: #64748b; }
.sp-forum-meta { font-size: 13px; color: #94a3b8; text-align: right; }
.sp-forum-replies {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-align: right;
    white-space: nowrap;
}

/* Forum detay */
.sp-thread-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8edf2;
}

.sp-post {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .sp-post { grid-template-columns: 1fr; }
}

.sp-post-side {
    background: #f1f5f9;
    padding: 20px 16px;
    border-right: 1px solid #e8edf2;
}

.sp-post-side strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.sp-post-side span { font-size: 15px; font-weight: 600; color: #0f172a; }

.sp-post-body {
    padding: 20px;
    background: #fff;
}

.sp-post-date {
    font-size: 14px;
    font-weight: 700;
    color: #00b4b6;
    margin-bottom: 12px;
}

.sp-post-content { font-size: 15px; line-height: 1.7; color: #334155; }

/* Formlar */
.sp-form-group { margin-bottom: 20px; }

.sp-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.sp-input,
.sp-card .form-control,
.sp-card input[type="text"],
.sp-card input[type="email"],
.sp-card input[type="tel"],
.sp-card input[type="number"],
.sp-card select,
.sp-card textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.sp-input:focus,
.sp-card .form-control:focus,
.sp-card input:focus,
.sp-card select:focus,
.sp-card textarea:focus {
    outline: none;
    border-color: #00b4b6;
    box-shadow: 0 0 0 3px rgba(0,180,182,0.12);
}

.sp-card .btn-primary,
.sp-card input.btn-primary {
    background: linear-gradient(135deg, #00b4b6, #009a9c) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

/* Mahalle meclisleri accordion */
.sp-accordion-item { margin-bottom: 8px; }

.sp-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    transition: background 0.15s, border-color 0.15s;
}

.sp-accordion-head:hover {
    background: #e8fafb;
    border-color: #00b4b6;
}

.sp-accordion-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #b2009f, #8a0079);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.sp-accordion-body {
    display: none;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -4px;
    background: #fff;
}

.sp-accordion-body.is-open { display: block; }

.sp-muhtar-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 640px) {
    .sp-muhtar-grid { grid-template-columns: 1fr; }
}

.sp-muhtar-photo {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sp-muhtar-info h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.sp-muhtar-row {
    font-size: 15px;
    color: #475569;
    margin-bottom: 8px;
}

.sp-muhtar-row a { color: #00b4b6; font-weight: 600; }

/* Haber grid */
.sp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) { .sp-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .sp-news-grid { grid-template-columns: 1fr; } }

.sp-news-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s;
}

.sp-news-card:hover { transform: translateY(-4px); }

.sp-news-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sp-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.sp-news-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

/* İletişim */
.sp-contact-map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 16px;
    margin-bottom: 32px;
    display: block;
}

.sp-contact-center { text-align: center; padding: 16px 0; }

.sp-contact-img {
    display: block;
    max-width: 280px;
    width: 100%;
    margin: 0 auto 24px;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.sp-contact-phone {
    font-size: 2rem;
    font-weight: 800;
    color: #00b4b6;
    margin: 0 0 12px;
}

.sp-contact-address {
    font-size: 17px;
    color: #475569;
    margin: 0;
}

/* Dayanışma */
.sp-hero-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdfa, #fff);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .sp-hero-split { grid-template-columns: 1fr; text-align: center; }
}

.sp-hero-split img { width: 100%; border-radius: 12px; }

.sp-quote {
    font-size: 17px;
    font-style: italic;
    color: #475569;
    line-height: 1.7;
}

.sp-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 600px) { .sp-cta-row { grid-template-columns: 1fr; } }

.sp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) { .sp-columns { grid-template-columns: 1fr; } }

.sp-column h2 {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: #0f172a;
    margin: 0 0 20px;
}

.sp-list-item {
    padding: 14px 18px;
    border-radius: 999px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
}

.sp-list-item--need { background: #2d3b99; }
.sp-list-item--help { background: #f57e1f; }

.sp-list-item i { margin-right: 10px; }

/* Oylama sonuçları */
.sp-poll-card {
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    background: #fafbfc;
}

.sp-poll-date {
    font-size: 13px;
    color: #94a3b8;
    text-align: right;
    margin-bottom: 8px;
}

.sp-poll-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    margin-bottom: 20px;
}

.sp-poll-option { margin-bottom: 16px; }

.sp-poll-option-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-poll-bar-wrap {
    height: 32px;
    background: #e8edf2;
    border-radius: 8px;
    overflow: hidden;
}

.sp-poll-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    min-width: 48px;
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* İçerik sayfası */
.sp-content-body {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

.sp-content-body h1, .sp-content-body h2, .sp-content-body h3 {
    color: #0f172a;
    margin-top: 1.5em;
}

.sp-content-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* Sayfalama */
.sp-pagination {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8edf2;
}

.sp-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-pagination .pagination > li {
    display: inline-flex;
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-pagination a,
.sp-pagination span,
.sp-pagination .pagination > li > a,
.sp-pagination .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #fff;
    white-space: nowrap;
    line-height: 1;
}

.sp-pagination a:hover {
    border-color: #00b4b6;
    color: #00b4b6;
}

.sp-pagination .active span,
.sp-pagination .pagination > .active > span,
.sp-pagination .pagination > .active > a {
    background: #00b4b6;
    color: #fff;
    border-color: #00b4b6;
}

.sp-pagination .disabled span,
.sp-pagination .disabled a,
.sp-pagination .pagination > .disabled > span,
.sp-pagination .pagination > .disabled > a {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Giriş FAB */
.sp-login-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 8px 28px rgba(220,38,38,0.4);
    text-decoration: none !important;
}

/* Form sayfaları — container override */
.sp-card > .container,
.sp-card .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-breadcrumb {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-align: right;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Captcha */
.sp-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sp-captcha-label { font-weight: 700; font-size: 15px; color: #334155; }
.sp-captcha-input { max-width: 220px; }

/* Bilgi kutusu */
.sp-info-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.sp-info-box h4 {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    color: #0f172a;
}

.sp-info-box ul { margin: 0; padding-left: 20px; }

/* Yükleme overlay */
.sp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    background: rgba(15, 23, 42, 0.5);
    align-items: center;
    justify-content: center;
}

.sp-overlay.is-visible { display: flex; }

.sbl-circ-ripple {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    position: relative;
    color: #fff;
}

.sbl-circ-ripple::after,
.sbl-circ-ripple::before {
    content: '';
    border: 5px solid #00b4b6;
    border-radius: 50%;
    position: absolute;
    left: 40%;
    top: 40%;
    animation: sp-ripple 1s linear infinite;
}

.sbl-circ-ripple::before { animation-delay: -0.5s; }

@keyframes sp-ripple {
    0% { height: 0; width: 0; left: 20px; top: 20px; }
    100% { height: 48px; width: 48px; left: -5px; top: -5px; opacity: 0; }
}

/* Ajax loading */
.sp-loading {
    position: fixed;
    z-index: 99999;
    inset: 0;
    margin: auto;
    width: 2em;
    height: 2em;
    display: none;
}

.sp-loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.sp-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e2e8f0;
    border-top-color: #00b4b6;
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Bilet salonu */
.sp-bilet-stage {
    margin: 0 auto;
    text-align: center;
    font-weight: 800;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, #00b4b6, #0d4f56);
    color: #fff;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

.sp-bilet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.sp-bilet-table td {
    border: 1px solid #cbd5e1;
    width: 4.166%;
    height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

.sp-bilet-table tr:nth-child(even) td { background: #f8fafc; }
.sp-bilet-table td:hover { background: #e8fafb; }
.sp-bilet-table td.is-selected { background: #00b4b6 !important; color: #fff; }
.sp-bilet-table td.is-sold { background: #94a3b8 !important; color: #fff; cursor: not-allowed; }

/* Form sayfa başlığı */
.sp-form-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    color: #0f172a;
}
