/* Google Ads Steps Guide - CSS with Blue, Green, and White Theme */

/* CSS Variables for Color Scheme */
:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1565C0;
    --light-blue: #42A5F5;
    --sky-blue: #E3F2FD;
    --primary-green: #43A047;
    --dark-green: #2E7D32;
    --light-green: #66BB6A;
    --pale-green: #E8F5E9;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #263238;
    --text-medium: #546E7A;
    --text-light: #78909C;
    --border-color: #CFD8DC;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--white) 50%, var(--pale-green) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    border-bottom: 5px solid var(--primary-green);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.subtitle {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.navigation {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--light-green);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    border-color: var(--dark-green);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

/* Main Content */
main {
    padding: 50px 0;
}

.ad-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.ad-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--sky-blue) 100%);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px var(--shadow);
    border-left: 6px solid var(--primary-blue);
    border-right: 6px solid var(--primary-green);
}

.section-header h2 {
    color: var(--dark-blue);
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.description {
    color: var(--text-medium);
    font-size: 1.2em;
    line-height: 1.6;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 10px var(--shadow);
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
    display: flex;
    gap: 25px;
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    border-left-color: var(--primary-green);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 8px var(--shadow);
    border: 4px solid var(--white);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--dark-blue);
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05em;
}

.step-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.step-content li {
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.7;
}

.step-content li strong {
    color: var(--primary-blue);
}

.step-content ul ul {
    margin-top: 8px;
    margin-left: 20px;
}

/* Example Box */
.example-box {
    background: linear-gradient(135deg, var(--pale-green) 0%, #C8E6C9 100%);
    border-left: 4px solid var(--primary-green);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.example-box strong {
    color: var(--dark-green);
    font-size: 1.1em;
    display: block;
    margin-bottom: 12px;
}

.example-box ul {
    margin-left: 20px;
}

.example-box li {
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Ad Preview Box */
.ad-preview {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    border: 3px dashed var(--primary-blue);
    padding: 25px;
    margin-top: 20px;
    border-radius: 10px;
}

.ad-component {
    margin-bottom: 20px;
}

.ad-component:last-child {
    margin-bottom: 0;
}

.ad-component label {
    color: var(--dark-blue);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.ad-component ul {
    margin-left: 20px;
}

.ad-component li {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.ad-component p {
    color: var(--text-medium);
    font-style: italic;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border-left: 4px solid #F9A825;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.tip-box strong {
    color: #F57F17;
    font-size: 1.1em;
    display: block;
    margin-bottom: 12px;
}

.tip-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.tip-box li {
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Calculation Box */
.calculation-box {
    background: linear-gradient(135deg, var(--sky-blue) 0%, #BBDEFB 100%);
    border: 2px solid var(--primary-blue);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.calculation-box strong {
    color: var(--dark-blue);
    font-size: 1.15em;
    display: block;
    margin-bottom: 15px;
}

.calculation-box p {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-left: 4px solid #E53935;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
    color: #C62828;
    font-weight: 500;
}

.warning-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.warning-box li {
    margin-bottom: 8px;
}

/* Note Box */
.note {
    background: var(--sky-blue);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95em;
    border-left: 3px solid var(--primary-blue);
}

/* Coming Soon Placeholder */
.coming-soon {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    border: 2px dashed var(--border-color);
    padding: 60px;
    text-align: center;
    font-size: 1.2em;
    color: var(--text-medium);
    border-radius: 12px;
    font-style: italic;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-blue);
}

footer p {
    margin-bottom: 8px;
    font-size: 1em;
}

footer p:last-child {
    opacity: 0.9;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .section-header h2 {
        font-size: 1.8em;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }

    .step-card {
        flex-direction: column;
        padding: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.3em;
        align-self: center;
    }

    .step-content h3 {
        font-size: 1.4em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navigation,
    footer {
        display: none;
    }

    .step-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
.nav-btn:focus,
button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--light-blue);
    color: var(--white);
}

::-moz-selection {
    background: var(--light-blue);
    color: var(--white);
}