/* =============================================================
   ALTYAZI DETAY V6.0 — ANILIST DESIGN SYSTEM
   ============================================================= */

.sd-page { max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem; }

/* --- Hero Banner --- */
.sd-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.sd-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    filter: blur(30px) brightness(0.35) saturate(1.3);
    transform: scale(1.15);
    z-index: 1;
}
.sd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,22,34,0.4) 0%, rgba(11,22,34,0.92) 100%);
    z-index: 2;
}
.sd-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    align-items: flex-end;
}
.sd-hero-poster {
    flex-shrink: 0;
    width: 180px;
}
.sd-hero-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}
.sd-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Breadcrumb */
.sd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.sd-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.sd-breadcrumb a:hover { color: var(--accent); }
.sd-breadcrumb i { font-size: 0.6rem; }

/* Anime Title */
.sd-anime-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}
.sd-anime-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.sd-anime-title a:hover { color: var(--accent); }

/* Release Name */
.sd-release-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}
.sd-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(192,99,245,0.15);
    color: var(--purple);
}

/* Spec Pills */
.sd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sd-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.sd-pill i { font-size: 0.7rem; opacity: 0.7; }

/* Uploader Chip */
.sd-uploader-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.35);
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.08);
    width: fit-content;
}
.sd-uploader-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.sd-uploader-chip a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}
.sd-uploader-chip a:hover { color: var(--accent); }
.sd-uploader-chip .sd-up-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* --- Actions Bar --- */
.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}
.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.sd-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateY(-1px);
}
.sd-btn.sd-btn-download {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    padding: 10px 24px;
    font-size: 0.88rem;
}
.sd-btn.sd-btn-download:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
}
.sd-btn.sd-btn-edit { border-color: var(--orange); color: var(--orange); }
.sd-btn.sd-btn-edit:hover { background: rgba(247,154,99,0.12); }

/* Thanks */
.sd-btn.sd-thanked {
    background: rgba(76,202,81,0.1);
    border-color: var(--green);
    color: var(--green);
    cursor: default;
    transform: none;
}

/* Rating Box */
.sd-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 3px;
}
.sd-vote-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.sd-vote-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sd-vote-btn.active { color: var(--accent); background: rgba(61,180,242,0.15); }
.sd-rating-val {
    font-weight: 800;
    padding: 0 8px;
    min-width: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: #fff;
}

/* --- Layout --- */
.sd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}
.sd-main, .sd-sidebar { min-width: 0; }

/* Widget */
.sd-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sd-widget-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.sd-widget-head i { color: var(--accent); font-size: 0.9rem; }

/* Description */
.sd-description {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-secondary);
    word-break: break-word;
}
.sd-description:empty::before {
    content: 'Açıklama girilmemiş.';
    color: var(--text-muted);
    font-style: italic;
}

/* --- Info Grid (Sidebar) --- */
.sd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.sd-info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.sd-info-item:nth-child(odd) { padding-right: 10px; }
.sd-info-item:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--border); }
.sd-info-item:nth-last-child(-n+2) { border-bottom: none; }
.sd-info-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sd-info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 1px;
}

/* Full-width info */
.sd-info-item.full {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: none;
}

/* --- Stat Counters --- */
.sd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}
.sd-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}
.sd-stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-bright);
}
.sd-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- Genre Tags --- */
.sd-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.75rem;
}
.sd-genre {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-surface);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

/* --- Other Subs --- */
.sd-other-list { display: flex; flex-direction: column; gap: 8px; }
.sd-other-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s;
}
.sd-other-item:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}
.sd-other-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sd-other-info { flex: 1; min-width: 0; }
.sd-other-release {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sd-other-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.sd-other-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.15s;
}
.sd-other-item:hover .sd-other-arrow { color: var(--accent); }
.sd-other-empty {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Comments --- */
.sd-comment-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font);
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sd-comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.sd-comment-form textarea::placeholder { color: var(--text-muted); }
.sd-comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.sd-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.sd-comment-submit:hover { box-shadow: 0 4px 16px var(--accent-glow); }
.sd-comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.sd-cancel-reply {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
}
.sd-cancel-reply:hover { color: var(--red); }

/* Comment Item */
.sd-comment {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.sd-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.sd-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.sd-comment-user a {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.sd-comment-user a:hover { text-decoration: underline; }
.sd-comment-date {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.sd-comment-body {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-primary);
    word-break: break-word;
}
.sd-comment-btns {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.sd-comment-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color 0.15s;
}
.sd-comment-btn:hover { color: var(--accent); }
.sd-comment-btn.sd-del-btn:hover { color: var(--red); }

.sd-comment-msg {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: none;
}

.sd-login-prompt {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.sd-login-prompt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.sd-login-prompt a:hover { text-decoration: underline; }

.sd-no-comments {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* --- Modal --- */
.sd-modal {
    display: none;
    position: fixed;
    z-index: 200000;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.sd-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.sd-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.sd-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sd-modal-title i { color: var(--accent); }
.sd-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.sd-modal-close:hover { color: var(--red); }
.sd-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.sd-modal-pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 60vh;
    overflow-y: auto;
}
.sd-archive-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    margin-bottom: 6px;
    border: 1px solid var(--border);
}
.sd-archive-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}
.sd-archive-name i { color: var(--accent); margin-right: 6px; }
.sd-archive-dl {
    padding: 5px 12px;
    background: var(--accent);
    color: #000;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s;
}
.sd-archive-dl:hover { box-shadow: 0 4px 12px var(--accent-glow); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .sd-page { padding: 0 1rem 2rem; }
    .sd-layout { grid-template-columns: 1fr; }
    .sd-hero-content { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
    .sd-hero-poster { width: 140px; }
    .sd-hero-info { align-items: center; }
    .sd-pills { justify-content: center; }
    .sd-actions { justify-content: center; }
    .sd-breadcrumb { justify-content: center; }
    .sd-anime-title { font-size: 1.4rem; }
    .sd-stats { grid-template-columns: repeat(3, 1fr); }
    .sd-info-grid { grid-template-columns: 1fr; }
    .sd-info-item:nth-child(odd) { padding-right: 0; }
    .sd-info-item:nth-child(even) { padding-left: 0; border-left: none; }
}
@media (max-width: 480px) {
    .sd-hero-poster { width: 110px; }
    .sd-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
}