/* Anasayfa — bağımsız modern tasarım */

.home-page {
    background: #f8fafc;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.home-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-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;
    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;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-login-fab:hover {
    transform: scale(1.06);
    color: #fff;
}

.home-user-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00b4b6, #0d9488);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 180, 182, 0.4);
    line-height: 1.25;
}

.home-user-fab__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
}

.home-user-fab strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 2px 0 6px;
}

.home-user-fab__out {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: underline !important;
    opacity: 0.95;
}

.home-hero {
    background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
    padding: 48px 0 56px;
    border-bottom: 1px solid #e2e8f0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.home-hero-grid > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
}

.home-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 180, 182, 0.15);
}

@media (max-width: 900px) {
    .home-hero-img {
        width: auto;
        max-width: min(100%, 360px);
        height: auto;
        margin: 0 auto;
    }
}

.home-hero-badge {
    display: inline-block;
    background: #e0f7f7;
    color: #0d4f56;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 20px;
}

.home-hero h1 span { color: #00b4b6; }

.home-hero-text {
    font-size: 17px;
    line-height: 1.75;
    color: #475569;
    margin: 0;
}

.home-hero-text + .home-hero-text { margin-top: 14px; }

.home-poll { padding: 56px 0; }

.home-poll-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 40px 32px;
    margin-bottom: 40px;
}

.home-poll-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.35;
}

.home-poll-title img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
}

.home-poll-title a,
.home-poll-title a.km-poll-detail-link,
.home-poll-title a.km-detail-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 14px auto 0 !important;
    padding: 10px 20px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.3 !important;
    color: #0d4f56 !important;
    background: linear-gradient(180deg, #f0fdfa 0%, #e0f7f7 100%) !important;
    border: 1.5px solid #00b4b6 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 180, 182, 0.12) !important;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s !important;
    cursor: pointer !important;
}

.home-poll-title a:hover,
.home-poll-title a.km-poll-detail-link:hover,
.home-poll-title a.km-detail-link:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #00b4b6, #009a9c) !important;
    border-color: #009a9c !important;
    box-shadow: 0 4px 14px rgba(0, 180, 182, 0.3) !important;
}

.home-poll-title a::after,
.home-poll-title a.km-poll-detail-link::after,
.home-poll-title a.km-detail-link::after {
    content: "↗" !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}

.home-countdown {
    max-width: 480px;
    margin: 0 auto 36px;
}

.home-poll-schedule {
    text-align: center;
    padding: 8px 4px 4px;
}

.home-poll-schedule-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-poll-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.home-poll-schedule-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 14px;
}

.home-poll-schedule-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.home-poll-schedule-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .home-poll-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.home-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.home-option-label {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 8px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.home-chat-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .home-chat-grid { grid-template-columns: 1fr; }
}

.home-chat-col {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fafbfc;
}

.home-chat-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
}

.home-chat-row {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.home-chat-row-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.home-meclis {
    background: linear-gradient(135deg, #0d4f56, #126069);
    padding: 56px 0;
}

.home-meclis-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.home-meclis-header h2 {
    font-family: 'Big Shoulders Text', cursive;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    text-transform: lowercase;
    margin: 0;
}

.home-meclis-all {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
}

.home-meclis-all:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.home-meclis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-meclis-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    transition: transform 0.2s;
}

.home-meclis-item:hover { transform: translateY(-3px); }
.home-meclis-item i { color: #ef4444; font-size: 12px; }

.home-news {
    padding: 56px 0 64px;
    background: #fff;
}

.home-news h2 {
    font-family: 'Big Shoulders Text', cursive;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #cbd5e1;
    text-transform: lowercase;
    margin: 0 0 32px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 700px) {
    .home-news-grid { grid-template-columns: 1fr; }
}

.home-news-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.home-news-card:hover { transform: translateY(-4px); }

.home-news-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.home-news-card:hover .home-news-card-bg { transform: scale(1.05); }

.home-news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.home-news-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.home-news-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00b4b6;
    opacity: 0;
    transition: opacity 0.3s;
}

.home-news-card:hover .home-news-play { opacity: 1; }

/* Oylama popup — geniş + okunaklı görsel */
.home-page #questionModal.modal {
    overflow: auto !important;
}

.home-page #questionModal.modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.home-poll-modal,
.home-page #questionDialog.modal-lg,
#questionDialog {
    max-width: min(1180px, 98vw) !important;
    width: 98vw !important;
    margin: 10px auto !important;
    max-height: calc(100vh - 16px) !important;
}

.home-page #questionModal .modal-content {
    max-height: calc(100vh - 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.home-page #questionModal .modal-header {
    flex-shrink: 0;
    padding: 8px 12px 0;
    border-bottom: none;
    min-height: 0;
}

.home-page #questionModal .modal-body {
    padding: 4px 20px 16px;
    max-height: none;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.home-page #questionModal .partialQuestion,
.home-page #questionModal form {
    max-height: none;
    overflow: visible;
}

.home-page .soruBaslikPopUp,
#questionModal .soruBaslikPopUp {
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f172a;
}

.home-page .soruBaslikPopUp img,
#questionModal .soruBaslikPopUp img {
    max-width: 100%;
    width: 100%;
    max-height: 58vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: block;
}

/* Ayrıntılı bilgi linki — popup + anasayfa */
.home-page .soruBaslikPopUp a,
#questionModal .soruBaslikPopUp a,
.partialQuestion .soruBaslikPopUp a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto 4px !important;
    padding: 10px 18px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.3 !important;
    color: #0d4f56 !important;
    background: #e8fafb !important;
    border: 1px solid #b2e8ea !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.home-page .soruBaslikPopUp a:hover,
#questionModal .soruBaslikPopUp a:hover,
.partialQuestion .soruBaslikPopUp a:hover {
    color: #fff !important;
    background: #00b4b6 !important;
    border-color: #00b4b6 !important;
    box-shadow: 0 4px 14px rgba(0, 180, 182, 0.28) !important;
}

.home-page .soruBaslikPopUp a::after,
#questionModal .soruBaslikPopUp a::after,
.partialQuestion .soruBaslikPopUp a::after {
    content: "→";
    font-size: 0.95em;
    opacity: 0.9;
}

.home-page .soruSiklar {
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Oylamaya katıl butonu — kesin ortala */
.home-page .home-poll-cta,
#questionModal .home-poll-cta,
.partialQuestion .home-poll-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-top: 16px !important;
    text-align: center !important;
}

.home-poll-cta-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

a.home-poll-join-btn,
.home-page .home-poll-join-btn,
#questionModal .home-poll-join-btn,
.partialQuestion .home-poll-join-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #00b4b6, #009a9c) !important;
    border: none !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 180, 182, 0.35) !important;
    box-sizing: border-box !important;
    white-space: normal;
    text-align: center;
}

.home-page .home-poll-join-btn:hover,
#questionModal .home-poll-join-btn:hover,
a.home-poll-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 180, 182, 0.38) !important;
    color: #fff !important;
}

.home-page .yorumPopUp {
    display: none;
}

.home-page .yorumPopUpAciklama {
    font-weight: 500;
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    margin-bottom: 18px;
}

.home-page .yorum-field {
    margin-bottom: 12px;
}

.home-page .yorumAreaPopUp {
    display: block;
    width: 100%;
    min-height: 88px;
    max-height: 22vh;
    height: 140px;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.5;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.home-page .yorumAreaPopUp:hover {
    border-color: #94a3b8;
    background: #fff;
}

.home-page .yorumAreaPopUp:focus {
    outline: none;
    border-color: #00b4b6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 180, 182, 0.18);
}

.home-page .yorum-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-page .yorumUzunlukPopUp {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .home-poll-modal,
    .home-page #questionDialog.modal-lg,
    #questionDialog {
        width: 98vw !important;
        max-width: 98vw !important;
        margin: 6px auto !important;
        max-height: calc(100vh - 12px) !important;
    }

    .home-page #questionModal .modal-content {
        max-height: calc(100vh - 12px);
    }

    .home-page #questionModal .modal-body {
        padding: 4px 12px 12px;
    }

    .home-page .soruBaslikPopUp img,
    #questionModal .soruBaslikPopUp img {
        max-height: 48vh;
        width: 100%;
    }
}
