/* style.css - Midnight Tech Theme + Responsive Lander */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --bg-dark: #050a14;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #000000;
    --card-bg: #242a84;
    --card-border: #ccc;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --accent-gold: #fbbf24;
    --accent-green: #4ade80;
    --accent-blue: #38bdf8;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 40px 20px;
    min-height: 100vh;
}

h1, h2 {
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    text-transform: uppercase;
}

h1 {
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lead {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.1rem;
}

/* --- 2. GRID LAYOUT --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
    list-style: none;
}

.domain-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-gold);
    background: #1647a1;
}

.domain-card a.domain-link {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0 0 0;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.domain-card a.domain-link:hover {
    background: linear-gradient(to right, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ACTION BAR --- */
.action-section {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.info-link {
    color: #eee;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.info-link:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.action-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.offer-text {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.offer-text:hover {
    color: #fcd34d;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.buy-text {
    color: var(--accent-green);
    font-size: 1rem;
}
.buy-text:hover {
    color: #86efac;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

hr {
    border-color: var(--card-border);
    opacity: 0.5;
}

.form-select-dark {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select-dark:focus {
    background-color: var(--bg-dark);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}

/* =========================================
   NEW LANDER PAGE STYLES (Responsive Fixes)
   ========================================= */

.lander-container { 
    max-width: 800px; 
    margin: 20px auto; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    overflow: hidden; 
    width: 100%; /* Ensures it fits on mobile */
}

.header-section { 
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%); 
    color: white; 
    padding: 40px 10px; /* Reduced side padding */
    text-align: center; 
}

/* THE DOMAIN TITLE FIX */
.domain-title { 
    font-weight: 800; 
    margin: 0; 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    
    /* 1. FORCE SINGLE LINE (No Wrapping) */
    white-space: nowrap;
    
    /* 2. AUTO-RESIZE FONT 
       This shrinks the font on small screens so it fits.
       Min: 1.2rem (Phone) | Preferred: 6vw | Max: 3.5rem (Desktop)
    */
    font-size: clamp(1.2rem, 6vw, 3.5rem);
    
    /* 3. SCROLL FALLBACK (Just in case) */
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}
/* Hide scrollbar for cleaner look */
.domain-title::-webkit-scrollbar { display: none; }
.domain-title { -ms-overflow-style: none; scrollbar-width: none; }

.content-section { 
    padding: 30px 20px; 
}

.price-box { 
    background: #f8fafc; 
    border: 2px dashed #cbd5e1; 
    padding: 25px; 
    border-radius: 10px; 
    text-align: center; 
    margin-bottom: 30px; 
}

.price-text { 
    font-size: 2rem; 
    color: #2ecc71; 
    font-weight: bold; 
    margin: 0; 
}

.btn-external { 
    margin: 5px; 
    border-radius: 20px; 
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    body { padding: 10px; }
    .header-section { padding: 30px 5px; } 
    .content-section { padding: 20px 15px; }
}