/* ============================================
   COMPONENTS.CSS — Reusable Components
   ============================================ */

/* ---------- Section Divider ---------- */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

/* ---------- Feature Item ---------- */
.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand-accent);
    min-width: 40px;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Process Steps ---------- */
.process-step {
    position: relative;
    padding: 2rem;
    border: 2px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
}

.process-step-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    color: var(--brand-accent);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Tag List ---------- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 3px 10px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ---------- Icon Box ---------- */
.icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    font-size: 1.25rem;
}

.icon-box-primary {
    background: var(--brand-primary);
    color: #fff;
}

.icon-box-secondary {
    background: var(--brand-secondary);
    color: #fff;
}

.icon-box-accent {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

/* ---------- Quote Block ---------- */
.quote-block {
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem 2rem;
    background: var(--surface-alt);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 2rem 0;
}

.quote-block cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Image Gallery Masonry-like ---------- */
.masonry-grid {
    columns: 3;
    column-gap: 1rem;
}

.masonry-grid .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ---------- Related Items ---------- */
.related-section {
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

/* ---------- Hero Small (Inner Pages) ---------- */
.hero-sm {
    padding: 100px 0 50px;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
}

.hero-sm h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* ---------- Card Grid Variants ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

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

/* ---------- Expertise Level ---------- */
.expertise-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    display: inline-block;
}

.expertise-label.expert {
    background: var(--brand-primary);
    color: #fff;
}

.expertise-label.frequent {
    background: var(--brand-secondary);
    color: #fff;
}

.expertise-label.knowledge {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ---------- Highlight Box ---------- */
.highlight-box {
    background: var(--brand-primary);
    color: #fff;
    padding: 2.5rem;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-brutal);
}

.highlight-box h3 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.8);
}

.highlight-box .btn-brutal {
    border-color: #fff;
}

/* ---------- Numbered List ---------- */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 0.75rem 0;
    padding-left: 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.numbered-list li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--brand-secondary);
}

/* ---------- Tech Stack ---------- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border: 2px solid var(--border);
    background: var(--surface);
}

/* ---------- Result Box ---------- */
.result-box {
    border: 2px solid var(--border);
    padding: 2rem;
    background: var(--surface-alt);
}

.result-box h3 {
    margin-bottom: 1rem;
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.result-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

/* ---------- Album Card ---------- */
.album-card {
    border: 2px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.album-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal);
    color: inherit;
}

.album-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-bottom: 2px solid var(--border);
}

.album-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card:hover .album-card-img img {
    transform: scale(1.05);
}

.album-card-count {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--border);
}

.album-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: 2px solid var(--border);
}

.album-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.album-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 0.75rem;
}

.album-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.album-card-meta .album-link {
    color: var(--brand-primary);
    font-weight: 700;
}

/* ---------- Pagination (grid helper) ---------- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-brutal {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-brutal .page-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 2px solid var(--border);
    color: var(--text-primary);
    background: var(--surface);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    text-decoration: none;
}

.pagination-brutal .page-link:hover,
.pagination-brutal .page-item.active .page-link {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.pagination-brutal .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------- Sidebar Widget ---------- */
.sidebar-widget-box {
    border: 2px solid var(--border);
    padding: 1.25rem;
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
}

.sidebar-widget-box h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-list li a:hover {
    color: var(--brand-primary);
}

.sidebar-thumb-link {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.sidebar-thumb-link:last-child {
    border-bottom: none;
}

.sidebar-thumb-link img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-thumb-link .sidebar-thumb-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-thumb-link .sidebar-thumb-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-thumb-link:hover .sidebar-thumb-title {
    color: var(--brand-primary);
}

/* ============================================
   STATUS PAGES (404, Maintenance, Coming Soon,
   Under Development)
   ============================================ */

/* ---------- Shared Status Page Layout ---------- */
.status-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.status-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.status-page {
    position: relative;
    width: 100%;
    padding: 90px 0 110px;
    overflow: hidden;
}

.status-page > .container {
    position: relative;
    z-index: 2;
}

.status-page--center {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.status-badge--secondary {
    background: var(--brand-secondary);
    color: #fff;
}

.status-badge--accent {
    background: var(--brand-accent);
    color: #101828;
}

.status-badge i {
    font-size: 0.9rem;
}

/* ---------- Big Error Code ---------- */
.status-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.04em;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(6rem, 17vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    user-select: none;
}

.status-code-zero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.12em;
    background: var(--brand-accent);
    color: #101828;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-brutal);
}

.status-code-outline {
    color: transparent;
    -webkit-text-stroke: 3px var(--border);
}

.status-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    max-width: 820px;
    margin: 0 auto 1rem;
    letter-spacing: -0.02em;
}

.status-text {
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ---------- Decorative Shapes ---------- */
.status-shape {
    position: absolute;
    border: 3px solid var(--border);
    z-index: 0;
    pointer-events: none;
}

.status-shape--1 {
    width: 120px;
    height: 120px;
    top: 65px;
    right: 7%;
    background: var(--brand-primary);
    transform: rotate(9deg);
}

.status-shape--2 {
    width: 72px;
    height: 72px;
    bottom: 25px;
    left: 6%;
    background: var(--brand-secondary);
    transform: rotate(-12deg);
}

.status-shape--3 {
    width: 42px;
    height: 42px;
    top: 34%;
    left: 11%;
    background: var(--brand-accent);
    transform: rotate(16deg);
}

.status-shape-plus {
    position: absolute;
    top: 30%;
    right: 12%;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    color: var(--brand-accent);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Status Link Cards ---------- */
.status-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    text-align: left;
}

.status-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.status-link-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
    color: var(--brand-secondary);
}

.status-link-card i {
    font-size: 1.2rem;
    color: var(--brand-secondary);
    flex-shrink: 0;
}

.status-link-card small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Status Panel (Maintenance) ---------- */
.status-panel {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem;
    border: 3px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal);
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--border);
    background: var(--brand-accent);
    color: #101828;
    font-size: 2rem;
    box-shadow: var(--shadow-brutal-sm);
}

.status-icon--secondary {
    background: var(--brand-secondary);
    color: #fff;
}

.status-icon--primary {
    background: var(--brand-primary);
    color: #fff;
}

.status-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: left;
    margin: 2rem 0;
}

.status-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.status-checklist i {
    color: var(--brand-accent);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.75rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-meta strong {
    color: var(--text-primary);
}

/* ---------- Standalone Header / Footer ---------- */
.status-topbar {
    padding: 0.9rem 0;
    border-bottom: 2px solid var(--border);
    background: var(--surface);
}

.status-topbar .status-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.status-topbar .status-brand img {
    height: 32px;
    width: auto;
}

.status-topbar .status-brand:hover {
    color: var(--text-primary);
}

.status-footer {
    padding: 1.5rem 0;
    border-top: 2px solid var(--border);
    background: var(--surface);
    text-align: center;
}

.status-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- Coming Soon ---------- */
.launch-hero {
    padding: 70px 0 80px;
}

.launch-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.launch-highlight {
    display: inline-block;
    padding: 0 0.14em;
    background: var(--brand-accent);
    color: #101828;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    transform: rotate(-1deg);
}

.launch-description {
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.countdown-item {
    min-width: 84px;
    padding: 0.75rem 0.6rem;
    border: 2px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Notify Form */
.notify-form {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
    margin-bottom: 0.75rem;
}

.notify-form .form-control {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text-primary);
}

.notify-form .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-brutal-sm);
    outline: none;
}

.notify-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.notify-success {
    max-width: 520px;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    background: var(--surface-alt);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notify-success[hidden] {
    display: none;
}

/* Launch Visual */
.launch-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.launch-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border: 3px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal);
}

.launch-card-logo {
    height: 52px;
    width: auto;
    margin-bottom: 1.25rem;
}

.launch-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.launch-card-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.launch-steps {
    display: grid;
    gap: 0.65rem;
}

.launch-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.launch-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    background: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.launch-shape {
    position: absolute;
    border: 3px solid var(--border);
    z-index: 1;
    pointer-events: none;
}

.launch-shape--1 {
    width: 110px;
    height: 110px;
    top: 0;
    left: 4%;
    background: var(--brand-primary);
    transform: rotate(-8deg);
}

.launch-shape--2 {
    width: 90px;
    height: 90px;
    bottom: 10px;
    right: 2%;
    background: var(--brand-secondary);
    transform: rotate(10deg);
}

.launch-shape--3 {
    width: 44px;
    height: 44px;
    bottom: 30%;
    left: 0;
    background: var(--brand-accent);
    transform: rotate(18deg);
}

/* ---------- Under Development Steps ---------- */
.dev-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.dev-step {
    padding: 1rem;
    border: 2px solid var(--border);
    background: var(--surface);
    text-align: left;
}

.dev-step-num {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.dev-step-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.dev-step.is-done {
    background: var(--surface-alt);
}

.dev-step.is-done .dev-step-num {
    color: var(--brand-secondary);
}

.dev-step.is-active {
    background: var(--brand-accent);
    box-shadow: var(--shadow-brutal-sm);
}

.dev-step.is-active .dev-step-num,
.dev-step.is-active .dev-step-label {
    color: #101828;
}

.dev-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
