/* ============================================
   DOORMC STORE - Maintenance Page
   Palette: Dark Gray + Orange
   ============================================ */

:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #15151a;
    --bg-tertiary: #1c1c24;
    --bg-card: #1a1a22;
    --bg-card-hover: #22222c;
    --bg-input: #0f0f14;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --orange: #FF7A1A;
    --orange-light: #FF9447;
    --orange-dark: #E55F00;
    --orange-glow: rgba(255, 122, 26, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #b8b8c4;
    --text-muted: #8a8a96;
    --text-grey-logo: #9a9aa6;

    --success: #4ade80;
    --success-glow: rgba(74, 222, 128, 0.4);
    --warning: #fbbf24;
    --warning-glow: rgba(251, 191, 36, 0.4);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-orange: 0 10px 40px rgba(255, 122, 26, 0.3);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============ BACKGROUND EFFECTS ============ */
.bg-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--orange);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--orange-dark);
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: #ff5500;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -80px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.logo-door {
    color: var(--text-grey-logo);
}

.logo-mc {
    color: var(--orange);
}

.logo-store {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 1.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-2px);
}

.btn-icon:active {
    transform: scale(0.92);
}

/* ============ BUTTONS + RIPPLE ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    transition: background var(--transition), color var(--transition),
                box-shadow var(--transition), border-color var(--transition),
                transform var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 122, 26, 0.5);
}

.btn-primary:active {
    transform: scale(0.95) translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 32px rgba(255, 122, 26, 0.45);
}

.btn-hero:hover {
    box-shadow: 0 18px 40px rgba(255, 122, 26, 0.6);
}

/* Ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-clicked {
    animation: btn-pulse 0.4s ease-out;
}

@keyframes btn-pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ============ MAINTENANCE SECTION ============ */
.maintenance {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 60px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-container {
    text-align: center;
    max-width: 920px;
}

/* Animated gear icon */
.maintenance-icon-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--orange-glow), transparent 70%);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.gear-main {
    position: relative;
    font-size: 130px;
    color: var(--orange);
    z-index: 2;
    animation: spin-slow 8s linear infinite;
    filter: drop-shadow(0 8px 20px rgba(255, 122, 26, 0.5));
}

.gear-main i {
    background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gear-small {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 56px;
    color: var(--orange-light);
    z-index: 3;
    animation: spin-reverse 5s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 122, 26, 0.6));
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-full);
    color: var(--warning);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 12px var(--warning);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Title */
.maintenance-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 7vw, 80px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.accent {
    color: var(--orange);
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maintenance-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    text-align: left;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 122, 26, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card:hover::before {
    opacity: 1;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 26, 0.12);
    color: var(--orange);
    border-radius: var(--radius-md);
    font-size: 20px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.info-card:hover .info-icon {
    background: var(--orange);
    color: #fff;
    transform: scale(1.1);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Actions */
.maintenance-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

/* Server Info Card */
.server-info-card {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(28, 28, 36, 0.85), rgba(20, 20, 26, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 36px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.server-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange-glow), transparent 70%);
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.server-deco {
    position: absolute;
    top: 24px;
    right: 30px;
    font-size: 100px;
    color: var(--orange);
    opacity: 0.18;
    transform: rotate(-12deg);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 30px var(--orange-glow));
}

.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(255, 122, 26, 0.4);
    position: relative;
    z-index: 1;
}

.server-info-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--orange);
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.server-info-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.access-field {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.access-field label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.access-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: border-color var(--transition);
    gap: 12px;
}

.access-input:hover {
    border-color: rgba(255, 122, 26, 0.3);
}

.input-text {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
}

.input-copy {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 122, 26, 0.12);
    color: var(--orange);
    font-size: 15px;
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.input-copy:hover {
    background: var(--orange);
    color: #fff;
    transform: scale(1.05);
}

.input-copy:active {
    transform: scale(0.9);
}

.access-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ============ FOOTER ============ */
.footer {
    padding: 40px 0 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-socials a:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--success);
    color: var(--text-primary);
    padding: 14px 22px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: calc(100% - 40px);
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--success);
    font-size: 18px;
}

/* ============ ANIMATIONS ============ */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav {
        padding: 14px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-store {
        font-size: 10px;
        padding: 2px 8px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .maintenance {
        padding: 40px 0 60px;
    }

    .maintenance-icon-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: 28px;
    }

    .gear-main {
        font-size: 100px;
    }

    .gear-small {
        font-size: 42px;
        top: 14px;
        right: 14px;
    }

    .maintenance-description br {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 40px;
    }

    .maintenance-actions {
        gap: 12px;
        margin-bottom: 50px;
    }

    .server-info-card {
        padding: 30px 24px 26px;
        border-radius: var(--radius-lg);
    }

    .server-deco {
        font-size: 80px;
        top: 18px;
        right: 18px;
    }

    .footer-mini {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 12px 16px;
        gap: 8px;
    }

    .logo-store {
        display: none;
    }

    .maintenance {
        padding: 30px 0 50px;
    }

    .maintenance-icon-wrap {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .gear-main {
        font-size: 85px;
    }

    .gear-small {
        font-size: 36px;
        top: 10px;
        right: 10px;
    }

    .status-badge {
        font-size: 11px;
        padding: 6px 14px;
        letter-spacing: 1px;
    }

    .maintenance-title {
        font-size: 40px;
    }

    .maintenance-description {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .maintenance-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 13px 24px;
    }

    .btn-hero {
        padding: 16px 24px;
        font-size: 15px;
    }

    .server-info-card {
        padding: 26px 20px 22px;
    }

    .server-info-title {
        font-size: 22px;
    }

    .version-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .server-deco {
        font-size: 64px;
        top: 14px;
        right: 14px;
    }

    .access-input {
        padding: 12px 14px;
    }

    .input-text {
        font-size: 15px;
    }

    .input-copy {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .toast {
        bottom: 20px;
        font-size: 13px;
        padding: 12px 18px;
    }
}

@media (max-width: 360px) {
    .maintenance-title {
        font-size: 34px;
    }

    .server-info-title {
        font-size: 20px;
    }
}
