/* Master Kratom Website CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb li + li::before {
    content: '›';
    margin: 0 0.5rem;
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: 500;
}

/* Focus Indicators for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #3498db;
}

/* Main Content Area */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

article {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}

h4 {
    color: #34495e;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table of Contents */
.toc {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.toc h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    border-bottom: none;
    padding-bottom: 0;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    margin: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.toc ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
}

.toc ul li a {
    color: #2c3e50;
    font-weight: 500;
}

.toc ul li a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Info Boxes */
.info-box {
    background-color: #e8f4f8;
    border-left: 5px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.info-box strong {
    color: #2980b9;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.warning-box strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.danger-box {
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.danger-box strong {
    color: #721c24;
    display: block;
    margin-bottom: 0.5rem;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.comparison-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: #e9ecef;
}

/* Strain/Effect/Dosage Cards */
.strain-card,
.effect-card,
.dosage-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.strain-card h3,
.effect-card h3,
.dosage-card h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.red-vein {
    border-left: 5px solid #dc3545;
}

.white-vein {
    border-left: 5px solid #6c757d;
}

.green-vein {
    border-left: 5px solid #28a745;
}

.yellow-vein {
    border-left: 5px solid #ffc107;
}

/* Strain Grid */
.strain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Effect Badges */
.effect-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.3rem;
    border-radius: 15px;
    font-size: 0.85rem;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
}

/* Dose Range Badges */
.dose-range {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.3rem;
    border-radius: 15px;
    font-weight: bold;
    color: white;
}

.dose-range.low {
    background-color: #28a745;
}

.dose-range.moderate {
    background-color: #ffc107;
    color: #333;
}

.dose-range.high {
    background-color: #dc3545;
}

/* Timeline Styling */
.timeline {
    border-left: 3px solid #3498db;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #3498db;
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white !important;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0.5rem 1rem 0;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Kratom Forms Grid */
.kratom-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.form-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.benefit-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.benefit-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefit-item ul {
    padding-left: 1.5rem;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-post {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-post h3 {
    margin-top: 0;
    color: #2c3e50;
}

.blog-post .meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post p {
    color: #34495e;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
    flex-wrap: wrap;
}

footer ul li {
    margin: 0.5rem 1rem;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    main {
        padding: 0 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .kratom-forms-grid,
    .benefits-grid,
    .blog-posts-grid,
    .strain-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
    
    .toc {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.4rem;
    }
    
    nav ul li {
        margin: 0.3rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    article {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .cta-button {
        display: block;
        text-align: center;
        margin: 1rem 0;
    }
}
