/* Professional Styles for Carbon Tracking Guide */

/* Typography Improvements */
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 800px;
    color: #d0d0d0;
}

/* Section Headlines */
section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.section-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center !important;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    color: #d0d0d0;
    padding: 0 1rem;
}

/* Card Headlines */
.understanding-card h3,
.science-card h3,
.impact-card h3,
.next-step-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center !important;
}

/* Text Content */
.understanding-card p,
.science-card p,
.impact-card p,
.next-step-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    text-align: center !important;
}

/* Key Points */
.key-point {
    background: linear-gradient(135deg, rgba(74, 226, 144, 0.1), rgba(82, 183, 136, 0.05));
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center !important;
}

.key-point strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Usage Steps */
.usage-step {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, rgba(40, 50, 65, 0.95), rgba(25, 35, 50, 0.95));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.usage-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 226, 144, 0.15);
    border-color: rgba(74, 226, 144, 0.5);
}

.usage-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #52b788);
}

.usage-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.usage-step p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.usage-step .step-link {
    display: none;
}

/* Example Boxes */
.example-box {
    background: rgba(11, 19, 33, 0.6);
    border: 1px solid rgba(74, 226, 144, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Formula Box */
.formula-box {
    background: linear-gradient(135deg, rgba(74, 226, 144, 0.1), rgba(82, 183, 136, 0.05));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.formula-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.formula-content {
    font-family: var(--mono-font);
    font-size: 1.1rem;
    color: var(--text-color);
    background: rgba(11, 19, 33, 0.4);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Impact Equivalents */
.equivalent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.equivalent-item .number {
    font-family: var(--mono-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.equivalent-item .description {
    font-size: 1.05rem;
    color: #d0d0d0;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
    line-height: 1.6;
}

/* Education Highlights */
.education-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
    padding: 1rem;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(74, 226, 144, 0.2);
    border-radius: 12px;
    min-width: 120px;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--mono-font);
    line-height: 1;
}

.highlight-label {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Modern Link Styling */
a {
    color: var(--accent-color) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

a:visited {
    color: var(--accent-color) !important;
    text-decoration: none !important;
}

a:hover {
    color: #52b788 !important;
    border-bottom: 2px solid #52b788;
    transform: translateY(-1px);
}

/* Button-Style Links for Guide Page */
.usage-step[href],
.next-step-card {
    position: relative;
}

.usage-step[href]::after,
.next-step-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #52b788);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.usage-step[href]:hover::after,
.next-step-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 226, 144, 0.4);
}

.usage-step[href]::after {
    content: '>';
    color: var(--primary-bg);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.next-step-card::after {
    content: '>';
    color: var(--primary-bg);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Button indicator text */
.usage-step[href]::before,
.next-step-card::before {
    content: 'Click to explore';
    position: absolute;
    bottom: 65px;
    right: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.usage-step[href]:hover::before,
.next-step-card:hover::before {
    opacity: 1;
    color: #52b788;
}

/* Remove hover effects from non-linked usage steps */
.usage-step:not([href]) {
    cursor: default;
}

.usage-step:not([href]):hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(74, 226, 144, 0.3);
}

/* Links and Buttons */
.step-link,
.next-step-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #52b788);
    color: var(--primary-bg) !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border-bottom: none !important;
}

.step-link:hover,
.next-step-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 226, 144, 0.3);
    border-bottom: none !important;
}

.next-step-link {
    display: none;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #52b788);
    color: var(--primary-bg);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 226, 144, 0.3);
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.1rem;
}

ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .education-highlights {
        gap: 1rem;
    }
    
    .highlight-item {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .highlight-number {
        font-size: 1.5rem;
    }
    
    .highlight-label {
        font-size: 0.8rem;
    }
}

/* Understanding Grid */
.understanding-grid,
.science-content,
.impact-grid,
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.understanding-card,
.science-card,
.impact-card {
    background: linear-gradient(135deg, rgba(40, 50, 65, 0.95), rgba(25, 35, 50, 0.95));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.next-step-card {
    background: linear-gradient(135deg, rgba(40, 50, 65, 0.95), rgba(25, 35, 50, 0.95));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.next-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 226, 144, 0.15);
    border-color: rgba(74, 226, 144, 0.5);
}

.next-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #52b788);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #52b788);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 226, 144, 0.15);
    border-color: rgba(74, 226, 144, 0.4);
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-number-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.step-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-items, .implementation-tips, .action-strategies {
    background: rgba(11, 19, 33, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-items h4, .implementation-tips h4, .action-strategies h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.action-items ul, .implementation-tips ul, .action-strategies ul {
    list-style: none;
    padding: 0;
}

.action-items li, .implementation-tips li, .action-strategies li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.action-items li::before, .implementation-tips li::before, .action-strategies li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.accuracy-note {
    background: linear-gradient(135deg, rgba(74, 226, 144, 0.1), rgba(82, 183, 136, 0.05));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.step-cta {
    background: linear-gradient(135deg, var(--accent-color), #52b788);
    color: var(--primary-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
}

.step-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 226, 144, 0.3);
}

/* Tracking Methods */
.tracking-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.method-option {
    background: rgba(11, 19, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.method-option:hover {
    background: rgba(74, 226, 144, 0.1);
    border-color: rgba(74, 226, 144, 0.2);
}

.method-option h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}


/* Technical Content */
.technical-content {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-explanation, .data-sources, .accuracy-info {
    margin-bottom: 3rem;
}

.tech-explanation h3, .data-sources h3, .accuracy-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.formula-box {
    background: linear-gradient(135deg, rgba(74, 226, 144, 0.1), rgba(82, 183, 136, 0.05));
    border: 1px solid rgba(74, 226, 144, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    font-family: var(--mono-font);
    font-size: 1.1rem;
}

.formula-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.formula-content {
    background: rgba(11, 19, 33, 0.6);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.source-item {
    background: rgba(11, 19, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.source-item:hover {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(74, 226, 144, 0.2);
    transform: translateY(-2px);
}

.source-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.accuracy-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.accuracy-level {
    background: rgba(11, 19, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.accuracy-level.high {
    border-color: rgba(74, 226, 144, 0.3);
}

.accuracy-level.medium {
    border-color: rgba(255, 193, 7, 0.3);
}

.accuracy-level.low {
    border-color: rgba(239, 68, 68, 0.3);
}

.accuracy-level:hover {
    transform: translateY(-2px);
}

.accuracy-level h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.accuracy-level.high h4 {
    color: var(--accent-color);
}

.accuracy-level.medium h4 {
    color: #ffc107;
}

.accuracy-level.low h4 {
    color: #ef4444;
}

/* Section Intros */
.section-intro {
    font-size: 1.2rem;
    color: var(--secondary-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .source-grid, .accuracy-levels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card, .tool-card {
        padding: 1.5rem;
    }
    
    .technical-content {
        padding: 2rem;
    }
    
    .step-number-large {
        font-size: 2.5rem;
    }
}
