.details-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(242, 230, 238, 0.88), rgba(151, 125, 255, 0.32));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(151, 125, 255, 0.22);
}

[data-theme="dark"] .details-topbar {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.88), rgba(74, 44, 90, 0.48));
    border-bottom-color: rgba(151, 125, 255, 0.34);
}

.details-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.4rem 1rem 4rem;
}

.details-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.details-heading h2 {
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.details-heading p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.details-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(151, 125, 255, 0.2), transparent 42%),
        var(--card-bg);
    border: 1px solid rgba(151, 125, 255, 0.24);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(40, 20, 66, 0.12);
    padding: 2rem 1.6rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.details-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    color: var(--text-color);
    margin-bottom: 0.7rem;
    line-height: 1.25;
}

.details-hero .hero-subline {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a0dad;
    background: rgba(151, 125, 255, 0.16);
    border: 1px solid rgba(151, 125, 255, 0.26);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(151, 125, 255, 0.18);
}

[data-theme="dark"] .details-hero .hero-subline {
    color: #c8bdff;
    background: rgba(151, 125, 255, 0.23);
    border-color: rgba(151, 125, 255, 0.38);
}

.details-hero p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.details-tags span {
    border: 1px solid rgba(151, 125, 255, 0.3);
    background: rgba(151, 125, 255, 0.12);
    color: #6a0dad;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

[data-theme="dark"] .details-tags span {
    color: #bdaeff;
    background: rgba(151, 125, 255, 0.2);
    border-color: rgba(151, 125, 255, 0.42);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.awards-card {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(151, 125, 255, 0.24);
    background:
        radial-gradient(circle at 92% 12%, rgba(151, 125, 255, 0.16), transparent 42%),
        var(--card-bg);
    box-shadow: 0 10px 24px rgba(38, 18, 61, 0.1);
}

.awards-card h3 {
    margin: 0 0 0.7rem;
    color: #6a0dad;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(151, 125, 255, 0.28);
    background: rgba(151, 125, 255, 0.14);
}

.awards-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.awards-card li {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 0.96rem;
    margin-bottom: 0.2rem;
    list-style: none;
}

.awards-card p {
    margin: 0.7rem 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

[data-theme="dark"] .awards-card h3 {
    color: #bdaeff;
    border-color: rgba(151, 125, 255, 0.44);
    background: rgba(151, 125, 255, 0.24);
}

.detail-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(151, 125, 255, 0.15), transparent 38%),
        var(--card-bg);
    border: 1px solid rgba(151, 125, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(38, 18, 61, 0.1);
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.detail-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    background: linear-gradient(135deg, rgba(151, 125, 255, 0.14), rgba(151, 125, 255, 0.06));
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease;
}

.detail-header:hover {
    background: linear-gradient(135deg, rgba(151, 125, 255, 0.2), rgba(151, 125, 255, 0.1));
}

.detail-card h3 {
    margin-bottom: 0;
    color: #6a0dad;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(151, 125, 255, 0.28);
    background: rgba(151, 125, 255, 0.14);
}

.detail-toggle-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(151, 125, 255, 0.35);
    background: rgba(151, 125, 255, 0.12);
    color: #6a0dad;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

[data-theme="dark"] .detail-card h3 {
    color: #bdaeff;
    border-color: rgba(151, 125, 255, 0.44);
    background: rgba(151, 125, 255, 0.24);
}

[data-theme="dark"] .detail-header {
    background: linear-gradient(135deg, rgba(151, 125, 255, 0.2), rgba(151, 125, 255, 0.1));
}

[data-theme="dark"] .detail-header:hover {
    background: linear-gradient(135deg, rgba(151, 125, 255, 0.28), rgba(151, 125, 255, 0.16));
}

[data-theme="dark"] .detail-toggle-icon {
    color: #c8bdff;
    border-color: rgba(151, 125, 255, 0.45);
    background: rgba(151, 125, 255, 0.2);
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.15rem;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.25s ease;
}

.detail-card.is-open .detail-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.15rem;
}

.detail-card.is-open .detail-toggle-icon {
    background: rgba(151, 125, 255, 0.22);
}

.detail-card p,
.detail-card li {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.96rem;
}

.detail-content p {
    margin: 0;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.tech-list span {
    border: 1px solid rgba(151, 125, 255, 0.28);
    background: rgba(151, 125, 255, 0.1);
    color: #6a0dad;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
}

[data-theme="dark"] .tech-list span {
    color: #c8bdff;
    background: rgba(151, 125, 255, 0.2);
    border-color: rgba(151, 125, 255, 0.42);
}

.details-topbar .dark-mode-toggle {
    position: static;
    right: auto;
    margin-left: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
}

.topbar-actions .btn,
.topbar-actions .dark-mode-toggle {
    min-height: 42px;
    border-radius: 10px;
}

.topbar-actions .btn {
    min-width: 160px;
    padding: 0.6rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.topbar-actions .dark-mode-toggle {
    width: 42px;
    height: 42px;
}

.detail-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

[data-theme="dark"] .detail-content code {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .details-topbar {
        padding: 0.8rem 0.8rem;
    }

    .topbar-actions {
        width: 100%;
    }

    .topbar-actions .btn {
        min-width: 145px;
    }

    .details-wrap {
        padding-top: 1.6rem;
    }

    .details-hero,
    .detail-card {
        border-radius: 14px;
    }

    .detail-header {
        padding: 0.95rem 0.95rem;
    }

    .detail-content {
        padding: 0 0.95rem;
    }

    .detail-card.is-open .detail-content {
        padding-bottom: 1rem;
    }
}
