/*
 * Rumble Websites Emailing Service Styles
 * Matching rumblewebsites.co.za brand design
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Blues (from Rumble Websites) */
    --primary-color: #0077ff;
    --primary-light-blue: #4cc9ff;
    --secondary-color: #667eea;
    --primary-dark: #764ba2;

    /* Pastel Colors */
    --pastel-purple: #764ba2;
    --pastel-pink: #f093fb;
    --pastel-mint: #4facfe;

    /* Frosted White & Neutrals */
    --frosted-white: rgba(255, 255, 255, 0.85);
    --frosted-white-solid: #ffffff;
    --frosted-white-light: rgba(255, 255, 255, 0.95);

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Text Colors (from Rumble Websites) */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Semantic Colors */
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    --success-text: #155724;

    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
    --error-text: #721c24;

    --info-bg: #d1ecf1;
    --info-border: #bee5eb;
    --info-text: #0c5460;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: 'Courier New', 'Monaco', 'Consolas', monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius (from Rumble Websites) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Shadows (from Rumble Websites) */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.16);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions (from Rumble Websites) */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: var(--spacing-lg);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
}

h5 {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
}

h6 {
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-blue) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-light-blue);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 80px var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-blue) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 60px var(--spacing-lg);
    position: relative;
}

.header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-blue) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(145deg, var(--frosted-white-solid) 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: 48px;
    margin: 30px 0;
    border: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-blue) 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1.1em;
    font-family: inherit;
    transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    width: 100%;
}

.btn-primary,
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-blue) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 119, 255, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--frosted-white);
    color: var(--text-secondary);
    border: 2px solid rgba(0, 119, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--frosted-white-solid);
    border-color: rgba(0, 119, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    display: none;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

.alert.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* ===== FEATURES GRID ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature {
    text-align: center;
    padding: 25px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: var(--spacing-md);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2em;
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: var(--gray-800);
    color: #68d391;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.info-box {
    background: #f0f4ff;
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.info-box code {
    background: #e0e7ff;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    color: #4c51bf;
}

/* ===== TABS ===== */
.tab-container {
    margin-bottom: var(--spacing-lg);
}

.tabs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-base);
    font-family: inherit;
}

.tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab:hover:not(.active) {
    background: var(--gray-200);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== LINKS ===== */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    background: var(--frosted-white);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.back-home-btn:hover {
    transform: translateX(-4px);
    background: var(--frosted-white-solid);
    border-color: rgba(0, 119, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    padding: 12px 20px;
    background: var(--frosted-white);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 119, 255, 0.1);
}

.back-link:hover {
    transform: translateX(-4px);
    background: var(--frosted-white-solid);
    border-color: rgba(0, 119, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.test-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-base);
}

.test-link:hover {
    color: var(--primary-light-blue);
    transform: translateX(4px);
}

/* ===== LOGO SECTIONS ===== */
.logo-header {
    text-align: center;
    padding: 40px var(--spacing-lg) 20px;
}

.logo-top {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

/* ===== FOOTER ===== */
.footer {
    color: var(--text-secondary);
    padding: 60px var(--spacing-lg);
    font-size: 14px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-footer {
    max-width: 80px;
    height: auto;
    flex-shrink: 0;
}

.footer-text {
    flex: 1;
}

.footer p {
    margin-bottom: 8px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--primary-light-blue);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .card {
        padding: 25px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        border-radius: var(--radius-lg);
    }

    .back-home-btn {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .logo-top {
        max-width: 150px;
    }

    .logo-header {
        padding: 30px var(--spacing-md) 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-footer {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--spacing-sm);
    }

    .card {
        padding: var(--spacing-lg);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .back-home-btn {
        padding: 8px 12px;
        font-size: 12px;
        top: 8px;
        left: 8px;
    }

    .logo-top {
        max-width: 120px;
    }

    .logo-footer {
        max-width: 50px;
    }
}

/* ===== PUBLIC STATISTICS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn var(--transition-slow);
}

.slide-up {
    animation: slideUp var(--transition-slow);
}
