/* --- PAGE LAYOUT & CONTAINERS --- */
.scripts-page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    font-family: sans-serif; 
}

.scripts-header {
    text-align: center;
    margin-bottom: 30px;
}

.scripts-header h1 {
    color: #6f00ff; 
    margin-bottom: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    line-height: 1.4;
}

.scripts-header h2 {
    color: #ff69b4; 
    margin-bottom: 15px;
}

.scripts-header p {
    color: #444;
    line-height: 1.5;
}

/* --- VIBE TABS --- */
.vibe-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.vibe-tab-btn {
    background: #f4f4f4;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.vibe-tab-btn:hover {
    background: #e9e9e9;
}

.vibe-tab-btn.active {
    background: #6f00ff;
    color: white;
    box-shadow: 0 4px 10px rgba(111, 0, 255, 0.3);
}

/* --- SECTIONS & CATEGORIES --- */
.script-section {
    display: none;
    position: relative;
}

.script-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.script-category h3 {
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #8c7aea;
    padding-left: 10px;
    margin-top: 25px;
}

/* --- SCRIPT CARDS (Rounded Boxes) --- */
.script-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.script-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.copy-btn {
    align-self: flex-start;
    background-color: #f0f4ff;
    color: #6f00ff;
    border: 1px solid #6f00ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background-color: #6f00ff;
    color: white;
}

.copy-btn.copied {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* --- PRO-TIP BOXES --- */
.pro-tip-box {
    background-color: #fff9e6;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

.spicy-tip {
    background-color: #ffeeee;
    border-left-color: #ff4444;
}

/* --- AUTH GATE OVERLAY --- */
.auth-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15%;
}

.auth-gate-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 450px;
    border: 2px solid #6f00ff; 
}

.auth-gate-content h3 {
    color: #6f00ff;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    line-height: 1.4;
}

.auth-gate-content p {
    color: #444;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-gate-primary {
    background-color: #6f00ff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-gate-primary:hover {
    background-color: #5900cc;
}

.btn-gate-secondary {
    background-color: transparent;
    color: #6f00ff;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #6f00ff;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-gate-secondary:hover {
    background-color: #f0f4ff;
}