/* ============================================================
   TechGiveaway - Mobile-First Base Styles
   Primary: #2563eb | CTA: #f59e0b | BG: #f5f7fa | Footer: #1a202c
   Font: System Stack | Cards: 12px radius | Buttons: 8px radius
   ============================================================ */

/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #1a202c;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* UTILITY */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-logo span {
    color: #f59e0b;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1a202c;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 999;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: #1a202c;
    font-weight: 500;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    background: #f0f4ff;
    color: #2563eb;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1a1a6e 0%, #2563eb 50%, #06b6d4 100%);
    padding: 48px 16px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

.hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero__subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.countdown__box {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 65px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown__number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.countdown__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* Hero CTA */
.hero__cta {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    min-height: 52px;
    transition: all 0.3s;
    text-decoration: none;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   PHONE CARDS SECTION
   ============================================================ */
.phones-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 6px;
}

.section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Phone Card */
.phone-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.phone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.phone-card__image {
    position: relative;
    background: #f8fafc;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.phone-card__image img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

/* Badge */
.badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.3px;
}

.badge--hot {
    background: #ef4444;
}

.badge--new {
    background: #3b82f6;
}

.badge--value {
    background: #22c55e;
}

.badge--ai {
    background: #8b5cf6;
}

.badge--fast {
    background: #f97316;
}

.badge--camera {
    background: #ec4899;
}

.badge--unique {
    background: #14b8a6;
}

.badge--creator {
    background: #eab308;
}

.badge--gaming {
    background: #dc2626;
}

.badge--foldable {
    background: #6366f1;
}

.badge--limited {
    background: #b91c1c;
}

.badge--default {
    background: #64748b;
}

.phone-card__content {
    padding: 10px 12px 14px;
}

.phone-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3px;
    line-height: 1.2;
}

.phone-card__price {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.phone-card__price del {
    text-decoration: line-through;
    margin-right: 6px;
}

.free-gift-tag {
    color: #22c55e;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.phone-card__desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phone-card__specs {
    margin-bottom: 10px;
    display: none;
}

.phone-card__specs li {
    font-size: 0.85rem;
    color: #475569;
    padding: 3px 0;
}

.phone-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 10px 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    min-height: 40px;
    transition: all 0.3s;
    text-decoration: none;
}

.phone-card__cta:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    color: #fff;
}

.phone-card__enddate {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 6px;
    text-align: center;
}

/* ============================================================
   CONTENT SECTIONS (High-CPC)
   ============================================================ */
.content-sections {
    padding: 20px 0;
    min-height: 200px;
}

/* Ensure content + phone sections are always visible (override any animation/JS) */
.content-sections .content-section,
.phones-section .section-header,
.phones-section .phone-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.content-sections__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    text-align: center;
}

.content-sections__empty {
    text-align: center;
    color: #64748b;
    padding: 32px 16px;
    font-size: 1rem;
}

.content-section {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #2563eb;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #334155;
}

.content-section p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.content-section li {
    font-size: 0.95rem;
    color: #475569;
    padding: 4px 0;
    line-height: 1.6;
    list-style: disc;
}

.content-section ol li {
    list-style: decimal;
}

/* Comparison Tables */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.content-section th {
    background: #f1f5f9;
    color: #1a202c;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.content-section td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.content-section tr:hover td {
    background: #f8fafc;
}

/* Financial Disclaimer */
.content-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}

/* ============================================================
   AD CONTAINERS
   ============================================================ */
.ad-container {
    margin: 24px auto;
    padding: 8px 0;
    text-align: center;
    min-height: 100px;
    max-width: 100%;
}

.ad-container.ad-multiplex {
    min-height: 200px;
}

.ad-label {
    display: block;
    text-align: center;
    color: #94a3b8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* ============================================================
   EMAIL SUBSCRIPTION
   ============================================================ */
.subscribe-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px 16px;
    text-align: center;
    margin: 24px 0;
    border-radius: 12px;
}

.subscribe-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
}

.subscribe-section>p {
    color: #64748b;
    margin-bottom: 24px;
}

.subscribe-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}

.subscribe-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.3s;
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.privacy-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 12px;
}

.subscribe-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a202c;
    color: #cbd5e1;
    padding: 40px 16px 20px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand .footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.footer-brand .footer-logo span {
    color: #f59e0b;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #f59e0b;
    color: #fff;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 32, 44, 0.97);
    backdrop-filter: blur(10px);
    padding: 16px;
    color: #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner a {
    color: #60a5fa;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn--amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.3s;
}

.btn--amber:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn--outline {
    background: transparent;
    color: #e2e8f0;
    font-weight: 500;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn--outline:hover {
    border-color: #fff;
    color: #fff;
}

/* ============================================================
   POLICY PAGES
   ============================================================ */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 16px;
}

.page-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a202c;
}

.page-content .page-updated {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: #1a202c;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #334155;
}

.page-content p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.page-content li {
    font-size: 0.95rem;
    color: #475569;
    padding: 3px 0;
    list-style: disc;
}

.page-content ol li {
    list-style: decimal;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.page-content th {
    background: #f1f5f9;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.page-content td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.page-content a {
    color: #2563eb;
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 24px auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a202c;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
    transition: border-color 0.2s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Honeypot (hidden from users) */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
}

/* ============================================================
   ALERTS & MESSAGES
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}