@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&display=swap");

body {
    font-family: "Roboto", sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    user-select: none;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 9999;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    /* Allow scrolling within sidebar */
}

.sidebar header {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    padding-left: 30px;
    line-height: 80px;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar ul {
    padding: 10px 0;
}

.sidebar ul h2 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 25px 30px 10px;
    font-weight: 600;
}

.sidebar ul a {
    display: flex;
    align-items: center;
    height: 50px;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 30px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar ul a i {
    font-size: 18px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.sidebar ul li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding-left: 35px;
}

.sidebar ul li a.active i {
    color: #6366f1;
}

.sidebar ul li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #6366f1;
    box-shadow: 2px 0 10px rgba(99, 102, 241, 0.5);
}

.sidebar ul li:hover a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 35px;
}

.sidebar ul li:hover a i {
    color: #6366f1;
    /* Modern indigo accent */
}

.sidebar ul li:hover a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #6366f1;
    box-shadow: 2px 0 10px rgba(99, 102, 241, 0.5);
}

.sidebar p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    padding: 30px;
    text-align: center;
}

#check {
    display: none;
}

label #btn,
label #cancel {
    position: fixed;
    cursor: pointer;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* Higher than sidebar (9999) */
}

label #btn {
    left: 30px;
    top: 20px;
    font-size: 24px;
    color: #fff;
    width: 45px;
    height: 45px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

label #cancel {
    left: -195px;
    /* Hidden by default */
    top: 20px;
    font-size: 24px;
    color: #fff;
    width: 45px;
    height: 45px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#check:checked~.sidebar {
    opacity: 1;
    visibility: visible;
}

#check:checked~label #btn {
    left: 250px;
    opacity: 0;
    pointer-events: none;
}

#check:checked~label #cancel {
    left: 190px;
    /* Positioned inside the sidebar */
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 9998;
    /* Just below sidebar (9999) */
    pointer-events: none;
}

/* Show overlay only on mobile when sidebar is open */
@media (max-width: 768px) {
    #check:checked~.sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Ensure section is below overlay */
    section {
        position: relative;
        z-index: 1;
    }
}

#check:checked~section {
    margin-left: 250px;
}

section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    /* Modern gradient */
    background-attachment: fixed;
    min-height: 100vh;
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Home Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    animation: fadeInDown 1s ease-out;
}

.header-logo-container {
    margin-bottom: 20px;
}

.header-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
}

/* Domain Form Styles */
.search-container {
    width: 100%;
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.2s both;
    background-color: #02070f;
    border-radius: 16px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: #fff;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.analyze-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analyze-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .analyze-btn {
        padding: 15px;
        justify-content: center;
    }

    /* Don't shift content on mobile when sidebar opens */
    #check:checked~section {
        margin-left: 0;
    }
}

/* Additional mobile-specific styles */
@media (max-width: 480px) {

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Prevent body scroll when sidebar is open */
    body:has(#check:checked) {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Results Styles */
.results-container {
    width: 100%;
    margin-top: 40px;
    display: none;
    /* Hidden by default */
    animation: fadeInUp 0.8s ease-out;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.result-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.result-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.result-card.auction {
    border-bottom: 4px solid #6366f1;
}

.result-card.marketplace {
    border-bottom: 4px solid #10b981;
}

.result-card.brokerage {
    border-bottom: 4px solid #f59e0b;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.info {
    border-left: 4px solid #6366f1;
}

.toast i {
    font-size: 1.2rem;
}

.toast.error i {
    color: #ef4444;
}

.toast.success i {
    color: #10b981;
}

.toast.info i {
    color: #6366f1;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

/* Content Page Styles */
.content-page {
    width: 100%;
    max-width: 900px;
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    margin: 40px auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
    box-sizing: border-box;
    /* Fix mobile overflow */
}

.content-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.content-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #6366f1;
}

.content-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.content-body ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-body ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.content-body ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.content-body a {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.content-body a:hover {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

.content-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .content-page {
        padding: 30px 20px;
        margin: 20px 10px;
        border-radius: 16px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .content-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .content-page {
        padding: 20px 15px;
        margin: 15px 10px;
        border-radius: 12px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .content-title {
        font-size: 1.75rem;
    }

    .content-body h2 {
        font-size: 1.25rem;
    }

    .content-body p,
    .content-body ul li {
        font-size: 0.95rem;
    }
}