/* ================================================
   UNIVERSAL TOOL PAGE STYLING - LARGE MODERN FONTS
   Apply this CSS to ALL 12 tool pages
   Inspired by Stripe, Apple, and modern web design
   ================================================ */

:root {
    --primary-color: #1e73be;
    --primary-dark: #155a8a;
    --primary-light: #2e8fd3;
    --text-dark: #0a0a0a;
    --text-medium: #1a1a1a;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --background-gray: #fafbfc;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ================================================
   HERO SECTION - LARGE & BOLD
   ================================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 24px;
    text-align: center;
}

.hero-section h1 {
    font-size: 64px;
    margin-bottom: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 24px;
    max-width: 900px;
    margin: 0 auto 60px;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
}

/* ================================================
   TOOL CARD - SPACIOUS & READABLE
   ================================================ */

.tool-card {
    background: var(--white);
    border-radius: 16px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-medium);
}

.form-group {
    margin-bottom: 32px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.1);
}

.form-group small {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

.char-counter {
    text-align: right;
    font-size: 16px;
    color: var(--text-light);
    margin-top: 10px;
}

/* ================================================
   BUTTONS - LARGE & PROMINENT
   ================================================ */

.cta-button,
button[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
}

.cta-button:hover,
button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.copy-button,
.download-button {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover,
.download-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

.copy-button.copied {
    background: #218838;
}

/* ================================================
   RESULTS AREA
   ================================================ */

.results-area {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

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

.results-area h3 {
    color: var(--primary-color);
    margin-bottom: 28px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.results-area h4 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.results-area p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-medium);
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-it-works-section {
    padding: 120px 24px;
    background: var(--background-gray);
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 52px;
    margin-bottom: 72px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 48px 36px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 28px;
}

.step h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 18px;
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
    padding: 120px 24px;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: 52px;
    margin-bottom: 72px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 28px 32px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    line-height: 1.4;
}

.faq-question:hover {
    background: var(--background-gray);
}

.faq-icon {
    font-size: 28px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 32px 32px;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 19px;
}

/* ================================================
   CTA SECTION
   ================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-section .cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    width: auto;
    margin-top: 0;
    font-size: 22px;
    padding: 20px 56px;
}

.cta-section .cta-button:hover {
    background: var(--background-gray);
    transform: translateY(-2px);
}

.cta-micro {
    margin-top: 28px;
    font-size: 18px;
    opacity: 0.9;
}

/* ================================================
   TOOL-SPECIFIC COMPONENTS
   ================================================ */

/* UTM Builder & Campaign URL Builder */
.utm-url-display {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.utm-url-display input {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 16px;
    background: var(--background-light);
}

.parameters-breakdown {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
}

.parameters-breakdown h4 {
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 24px;
}

.parameter-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
}

.parameter-item:last-child {
    border-bottom: none;
}

.parameter-label {
    font-weight: 600;
    min-width: 200px;
    color: var(--text-dark);
}

.parameter-value {
    color: var(--primary-color);
    word-break: break-all;
}

/* Meta Description & Title Generators */
.results-intro {
    color: var(--text-medium);
    margin-bottom: 28px;
    font-size: 19px;
}

.description-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.description-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.description-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 19px;
}

.char-count {
    font-size: 16px;
    color: var(--text-light);
    padding: 8px 16px;
    background: var(--white);
    border-radius: 16px;
}

.char-count.optimal {
    background: var(--success-color);
    color: var(--white);
    font-weight: 600;
}

.description-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--white);
    border-radius: 10px;
    font-size: 18px;
}

.copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--success-color);
}

/* Robots.txt Generator & Tester, Sitemap Generator */
.code-display {
    background: #1e293b;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 28px;
    overflow-x: auto;
}

.code-display pre {
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 18px;
}

.instructions-card {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
}

.instructions-card h4 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-dark);
}

.instructions-card ol {
    padding-left: 0;
    counter-reset: step-counter;
    list-style: none;
}

.instructions-card li {
    position: relative;
    padding-left: 52px;
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.6;
    counter-increment: step-counter;
}

.instructions-card li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
}

/* Headline Analyzer & Meta Title Checker */
.score-display,
.grade-display,
.roas-display {
    text-align: center;
    margin-bottom: 52px;
}

.score-circle,
.grade-circle,
.roas-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.score-value,
.grade-value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.roas-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.score-label,
.grade-label,
.roas-label {
    font-size: 20px;
    opacity: 0.9;
    margin-top: 8px;
}

.score-rating,
.roas-percentage {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.analysis-sections {
    display: grid;
    gap: 28px;
}

.analysis-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 32px;
}

.analysis-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-dark);
    font-weight: 500;
}

.metric-value {
    color: var(--primary-color);
    font-weight: 600;
}

.metric-value.good {
    color: var(--success-color);
}

.metric-value.warning {
    color: #ffc107;
}

.metric-value.bad {
    color: #dc3545;
}

.alternative-headline {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
}

.alternative-headline:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Reading Level Checker */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.score-card {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.score-card h4 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.score-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1;
}

.score-desc {
    font-size: 18px;
    color: var(--text-medium);
}

.suggestions-card {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
}

.suggestions-card h4 {
    margin-bottom: 20px;
    font-size: 24px;
}

.suggestions-card ul {
    list-style: none;
    padding: 0;
}

.suggestions-card li {
    padding: 14px 18px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 18px;
}

/* ROAS Calculator */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.metric-box {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.metric-title {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 14px;
}

.metric-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Redirect Checker */
.redirect-steps {
    margin-bottom: 40px;
}

.redirect-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--background-light);
    border-radius: 12px;
    margin-bottom: 16px;
}

.redirect-step .step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0;
}

.step-details {
    flex: 1;
}

.step-url {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    word-break: break-all;
    font-weight: 500;
}

.step-status {
    display: flex;
    gap: 14px;
    align-items: center;
}

.status-code {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
}

.status-type {
    color: var(--text-medium);
    font-size: 17px;
}

.status-code.success {
    background: var(--success-color);
}

.status-code.warning {
    background: #ffc107;
}

.status-code.error {
    background: #dc3545;
}

.redirect-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    padding: 12px 0;
}

.summary-card {
    background: var(--background-light);
    padding: 32px;
    border-radius: 12px;
}

.summary-card h4 {
    margin-bottom: 20px;
    font-size: 24px;
}

.summary-card p {
    font-size: 18px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.summary-card p:last-child {
    margin-bottom: 0;
}

.summary-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .hero-section {
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 20px;
    }

    .tool-card {
        padding: 40px 28px;
    }

    .how-it-works-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 42px;
    }

    .step h3 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 19px;
        padding: 24px 26px;
    }

    .faq-answer p {
        font-size: 17px;
        padding: 0 26px 26px;
    }

    .utm-url-display {
        flex-direction: column;
    }

    .parameter-item {
        flex-direction: column;
        gap: 8px;
    }

    .parameter-label {
        min-width: auto;
    }

    .action-buttons {
        flex-direction: column;
    }
    
    .copy-button,
    .download-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 17px;
    }

    .hero-section {
        padding: 60px 16px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .tool-card {
        padding: 32px 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 17px;
        padding: 16px 18px;
    }

    .form-group label {
        font-size: 18px;
    }

    .cta-button,
    button[type="submit"] {
        font-size: 18px;
        padding: 18px 36px;
    }

    .how-it-works-section,
    .faq-section,
    .cta-section {
        padding: 80px 16px;
    }

    .how-it-works-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 36px;
        margin-bottom: 48px;
    }

    .step-number {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .step h3 {
        font-size: 20px;
    }

    .step p {
        font-size: 16px;
    }

    .faq-question {
        font-size: 17px;
        padding: 20px 22px;
    }

    .faq-icon {
        font-size: 24px;
    }

    .faq-answer p {
        font-size: 16px;
        padding: 0 22px 22px;
    }

    .results-area h3 {
        font-size: 28px;
    }

    .score-circle,
    .grade-circle,
    .roas-circle {
        width: 160px;
        height: 160px;
    }

    .score-value,
    .grade-value {
        font-size: 56px;
    }

    .roas-value {
        font-size: 44px;
    }
}
