/* Pwnsy Homepage - Cyberpunk Theme - Compact Layout */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-elevated: #22222f;
    --text-primary: #f0f0f5;
    --text-secondary: #b8b8c8;
    --text-muted: #7a7a8a;
    --accent-primary: #00ff88;
    --accent-secondary: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --accent-alt: #ff3366;
    --accent-info: #00d4ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 255, 136, 0.3);
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-glow: 0 0 20px var(--accent-glow);
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
}

/* App Container - Full viewport, no scroll */
.app {
    position: relative;
    height: 100vh;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -150px;
    right: -50px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, transparent 70%);
    animation: float1 20s ease-in-out infinite;
}

.glow-2 {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.15) 0%, transparent 70%);
    animation: float2 25s ease-in-out infinite;
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.25;
    }

    25% {
        transform: translate(30px, 20px);
        opacity: 0.35;
    }

    50% {
        transform: translate(-20px, 40px);
        opacity: 0.3;
    }

    75% {
        transform: translate(20px, -10px);
        opacity: 0.4;
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }

    33% {
        transform: translate(-40px, -30px);
        opacity: 0.3;
    }

    66% {
        transform: translate(30px, -20px);
        opacity: 0.25;
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

/* Header - Compact */
.header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.5rem 0 1rem;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.logo h1 {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Main Content */
.main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

/* Section Header - Smaller */
.section-header {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Search Types Grid - Compact */
.types-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.search-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    flex: 1;
    align-content: center;
}

.search-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.search-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-info));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.search-option:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.search-option:hover::before {
    opacity: 1;
}

.search-option.selected {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.search-option.selected::before {
    opacity: 1;
}

/* Minimized state - much smaller */
.search-option.minimized {
    padding: 0.4rem;
    opacity: 0.5;
    transform: scale(0.9);
}

.search-option.minimized .option-desc {
    display: none;
}

.search-option.minimized .option-label {
    font-size: 0.7rem;
}

.search-option.minimized .option-icon {
    font-size: 1rem;
}

.search-option.minimized:hover {
    opacity: 0.7;
    transform: scale(0.92);
}

.option-icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

.option-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Search Section - Compact */
.search-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

#searchInput {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    position: absolute;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: var(--accent-alt);
    color: white;
}

.search-btn {
    padding: 0.6rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Input Hints */
.input-hint,
.url-suggestion {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-info);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
}

/* File Input */
.file-input-wrapper {
    flex: 1;
    position: relative;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-input-label:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.file-input-label.has-file {
    border-style: solid;
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.file-icon {
    font-size: 1.1rem;
}

#imageInput {
    display: none;
}

.image-file-name {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer - Compact */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.lock-icon {
    font-size: 0.8rem;
}

.legal {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Products Section */
.products-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
    height: 55vh;
    min-height: 280px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card.intel::before {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
}

.product-card.erase::before {
    background: linear-gradient(90deg, #00d4ff, #0099ff);
}

.product-card.alerts::before {
    background: linear-gradient(90deg, #ff0055, #ff3366);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

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

.product-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-card.coming-soon:hover {
    transform: none;
}

.product-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-badge {
    margin-top: 1.25rem;
    padding: 0.4rem 1rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.product-card.erase .product-badge {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
}

.product-card.alerts .product-badge {
    background: rgba(255, 51, 102, 0.15);
    border-color: #ff3366;
    color: #ff3366;
}

.product-badge.soon {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: var(--text-muted);
}

/* Patreon Badge */
.patreon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, #ff424d 0%, #f96854 100%);
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 66, 77, 0.3);
}

.patreon-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 66, 77, 0.5);
}

.patreon-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .search-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .search-option {
        padding: 0.5rem 0.25rem;
    }

    .option-icon {
        font-size: 1rem;
    }

    .option-label {
        font-size: 0.7rem;
    }

    .option-desc {
        display: none;
    }

    .search-container {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

/* Shake animation for validation errors */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}