
/* Base styles */
body {
    background: #1a202c;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
nav {
    background: #2d3748;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Store link */
.store-link {
    background: linear-gradient(to right, #3182ce, #2b6cb0);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-link:hover {
    background: linear-gradient(to right, #2b6cb0, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Search input */
.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid #4a5568;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
    background: rgba(45, 55, 72, 0.95);
}

/* Hub Grid */
#hubGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 640px) {
    #hubGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #hubGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hub cards */
.hub-card {
    background: #2d3748;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #4a5568;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #3182ce;
}

.hub-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Detection Badge */
.detection-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.detection-badge.detected {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 1px solid #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.detection-badge.undetected {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: 1px solid #059669;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.detection-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.get-script-btn {
    background: linear-gradient(to right, #3182ce, #2b6cb0);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.get-script-btn:hover {
    background: linear-gradient(to right, #2b6cb0, #2563eb);
    transform: translateY(-1px);
}

.get-script-btn:active {
    transform: translateY(0);
}

/* Modal */
#scriptModal, #adModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #1a202c;
    border-radius: 16px;
    width: 95%;
    max-width: 500px;
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
    border: 1px solid #2d3748;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(to right, #2d3748, #1a202c);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #2d3748;
}

.modal-title-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.modal-header button {
    font-size: 28px;
    line-height: 1;
    padding: 0 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
}

.modal-header button:hover {
    transform: scale(1.1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #60a5fa;
}

.script-content {
    padding: 20px;
    background: rgba(26, 32, 44, 0.8);
    margin: 16px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid #2d3748;
}

.script-content pre {
    margin: 0;
    padding: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #1a202c;
    border-top: 1px solid #4a5568;
}

.copy-btn, .close-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-btn {
    background: linear-gradient(to right, #3182ce, #2b6cb0);
    color: white;
}

.copy-btn:hover {
    background: linear-gradient(to right, #2b6cb0, #2563eb);
    transform: translateY(-1px);
}

.close-btn {
    background: #4a5568;
    color: white;
}

.close-btn:hover {
    background: #2d3748;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .container {
        width: 100%;
        padding: 0 12px;
    }

    .hub-card {
        padding: 16px;
        min-height: 160px;
        margin-bottom: 12px;
    }

    .hub-title {
        font-size: 1.125rem;
    }

    .detection-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .get-script-btn {
        padding: 10px;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 100%;
        height: 90vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .script-content {
        margin: 12px;
        padding: 16px;
        max-height: calc(90vh - 180px);
        overflow-y: auto;
    }

    .modal-header, .modal-footer {
        padding: 14px 16px;
    }

    .modal-title-container {
        gap: 6px;
    }

    .copy-btn, .close-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    #scriptModal, #adModal {
        padding: 0;
        align-items: flex-end;
    }
}

/* Banner styles */
.info-banner {
    background: linear-gradient(to right, #1a365d, #2d3748);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.info-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #60a5fa, transparent);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
} 