/* Redundancy to Freelancing Guide - Responsive Styles */

/* Base styles */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    line-height: 1.6;
}

/* Header styles */
.guide-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 2px solid #f0f0f0;
}

.guide-header h1 {
    font-size: 48px;
    line-height: 52px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.guide-intro {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Table of contents */
.toc {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.toc h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

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

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #000;
    text-decoration: underline;
}

/* Content grid layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.main-content {
    line-height: 1.7;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Section styles */
.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    font-weight: bold;
}

.section h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #444;
    font-weight: 600;
}

.section h4 {
    font-size: 20px;
    margin: 25px 0 10px 0;
    color: #555;
    font-weight: 600;
}

.section p {
    margin-bottom: 15px;
    color: #333;
}

.section ul, .section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.section li {
    margin-bottom: 8px;
    color: #333;
}

/* Callout boxes */
.callout {
    background: #f8f8f8;
    border-left: 4px solid #000;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.callout h4 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.callout p {
    margin-bottom: 10px;
}

.callout a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.callout a:hover {
    color: #666;
}

/* Highlight boxes */
.highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 5px;
    margin: 25px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: #856404;
    font-weight: 600;
}

/* Image placeholders */
.image-placeholder {
    background: #f0f0f0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

/* Author section */
.author-section {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin-top: 60px;
    text-align: center;
}

.author-section h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.author-section p {
    margin-bottom: 10px;
    color: #666;
}

.author-section a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.author-section a:hover {
    color: #666;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    opacity: 1;
    color: #fff;
}

/* Responsive design */
@media (min-width: 800px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .sidebar {
        position: sticky;
        top: 20px;
        height: fit-content;
    }
}

@media (max-width: 600px) {
    .guide-header h1 {
        font-size: 32px;
        line-height: 36px;
    }
    
    .guide-intro {
        font-size: 18px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .section h3 {
        font-size: 22px;
    }
    
    .callout, .highlight-box {
        padding: 15px;
    }
    
    .toc {
        padding: 20px;
    }
    
    .guide-container {
        padding: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .guide-header {
        padding: 20px 0;
        margin-bottom: 40px;
    }
    
    .guide-header h1 {
        font-size: 28px;
        line-height: 32px;
    }
    
    .guide-intro {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .section h3 {
        font-size: 20px;
    }
    
    .section h4 {
        font-size: 18px;
    }
    
    .toc {
        padding: 15px;
    }
    
    .toc h2 {
        font-size: 20px;
    }
    
    .author-section {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .back-to-top {
        display: none;
    }
    
    .sidebar {
        position: static;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .callout, .highlight-box {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
} 