/*
 * ConsoleSniper - Sitemap Generator Page Styles
 * Pure Black Neumorphic Heavy Design
 */

/* ===== SITEMAP GENERATOR PAGE LAYOUT ===== */
.sitemap-generator-page {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== SITEMAP HERO SECTION ===== */
.sitemap-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background: #000000;
}

.sitemap-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.5;
    }
}

.sitemap-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: 0 0;
    opacity: 0.03;
    pointer-events: none;
}

.sitemap-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.sitemap-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.title-accent {
    color: #e0e0e0;
    font-weight: 800;
}

.sitemap-subtitle {
    font-size: 1.1rem;
    color: #c0c0c0;
    line-height: 1.6;
    margin: 0;
}

/* ===== SITEMAP GENERATOR SECTION ===== */
.sitemap-generator-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sitemap-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== INPUT PANEL ===== */
.input-panel {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: -8px -8px 20px rgba(255, 255, 255, 0.05), 8px 8px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.input-panel:hover {
    box-shadow: -4px -4px 12px rgba(255, 255, 255, 0.08), 4px 4px 12px rgba(0, 0, 0, 0.6);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

/* ===== INPUT GROUP ===== */
.input-group {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #d0d0d0;
}

.sitemap-input,
.options-input {
    width: 90%;
    padding: 0.9rem 1rem;
    background: #0f0f0f;
    border: none;
    border-radius: 12px;
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.05), inset 4px 4px 10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.sitemap-input::placeholder,
.options-input::placeholder {
    color: #666666;
}

.sitemap-input:focus,
.options-input:focus {
    outline: none;
    background: #1a1a1a;
    box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.08), inset 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* ===== OPTIONS ROW ===== */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-group {
    display: flex;
    flex-direction: column;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background: rgba(255, 67, 54, 0.1);
    border-left: 4px solid #ff4336;
    color: #ff8a80;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

/* ===== BUTTONS GROUP ===== */
.buttons-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.generate-button,
.cancel-button,
.download-button,
.preview-button,
.clear-button {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.5rem;
    background: #1a1a1a;
    border: none;
    border-radius: 14px;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: -8px -8px 20px rgba(255, 255, 255, 0.05), 8px 8px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-button:hover:not(:disabled),
.download-button:hover:not(:disabled),
.preview-button:hover:not(:disabled),
.clear-button:hover:not(:disabled) {
    box-shadow: -4px -4px 12px rgba(255, 255, 255, 0.08), 4px 4px 12px rgba(0, 0, 0, 0.6);
}

.generate-button:active:not(:disabled),
.download-button:active:not(:disabled),
.preview-button:active:not(:disabled),
.clear-button:active:not(:disabled) {
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.05), inset 4px 4px 10px rgba(0, 0, 0, 0.7);
}

.generate-button:disabled,
.cancel-button:disabled,
.download-button:disabled,
.preview-button:disabled,
.clear-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cancel-button {
    display: none;
}

.download-button,
.preview-button,
.clear-button {
    display: none;
}

.download-button.show,
.preview-button.show,
.clear-button.show {
    display: flex;
}

.cancel-button.show {
    display: flex;
}

.generate-button.hide {
    display: none;
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    display: none;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: -8px -8px 20px rgba(255, 255, 255, 0.05), 8px 8px 20px rgba(0, 0, 0, 0.8);
    margin-top: 2rem;
}

.progress-section.show {
    display: block;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.progress-bar-wrapper {
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.05), inset 4px 4px 10px rgba(0, 0, 0, 0.7);
    height: 28px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a9d6f 0%, #6fb587 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 157, 111, 0.4);
}

.status-message {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ===== URLS LIST SECTION ===== */
.urls-list-section {
    display: none;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: -8px -8px 20px rgba(255, 255, 255, 0.05), 8px 8px 20px rgba(0, 0, 0, 0.8);
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.urls-list-section.show {
    display: block;
}

.urls-list-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}

.urls-list {
    background: #0f0f0f;
    border-radius: 14px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.05), inset 4px 4px 10px rgba(0, 0, 0, 0.7);
}

.url-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.85rem;
    color: #d0d0d0;
    word-break: break-all;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

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

.url-item.success {
    color: #9dcc9d;
}

.url-item.error {
    color: #ff9999;
}

.url-text {
    font-family: 'IBM Plex Mono', monospace;
}

.error-text {
    color: #ff6b6b;
    font-size: 0.75rem;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sitemap-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .options-row {
        grid-template-columns: 1fr;
    }

    .input-panel,
    .progress-section,
    .urls-list-section {
        border-radius: 24px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .sitemap-generator-section {
        padding: 2rem 1rem;
    }

    .sitemap-hero {
        padding: 4rem 1.5rem 3rem;
        min-height: 40vh;
    }

    .sitemap-title {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
    }

    .sitemap-subtitle {
        font-size: 1rem;
    }

    .panel-title {
        font-size: 1.25rem;
    }

    .input-panel,
    .progress-section,
    .urls-list-section {
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: -6px -6px 16px rgba(255, 255, 255, 0.05), 6px 6px 16px rgba(0, 0, 0, 0.7);
    }

    .buttons-group {
        flex-direction: column;
    }

    .generate-button,
    .cancel-button,
    .download-button,
    .preview-button,
    .clear-button {
        min-width: unset;
        width: 100%;
    }

    .urls-list {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .sitemap-generator-section {
        padding: 1.5rem 1rem;
    }

    .sitemap-hero {
        padding: 3rem 1rem 2rem;
        min-height: 35vh;
    }

    .sitemap-title {
        font-size: 1.5rem;
    }

    .sitemap-subtitle {
        font-size: 0.95rem;
    }

    .input-panel,
    .progress-section,
    .urls-list-section {
        border-radius: 16px;
        padding: 1.25rem;
        box-shadow: -4px -4px 12px rgba(255, 255, 255, 0.05), 4px 4px 12px rgba(0, 0, 0, 0.6);
    }

    .panel-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .input-group {
        margin-bottom: 1.5rem;
    }

    .sitemap-input,
    .options-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .urls-list {
        max-height: 250px;
    }

    .url-item {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.urls-list::-webkit-scrollbar {
    width: 8px;
}

.urls-list::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 4px;
}

.urls-list::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.urls-list::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
