/* ===== 301 REDIRECT GUIDE - MAIN STYLESHEET ===== */

* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* ===== HEADER STYLES ===== */
.main-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.main-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== NAVIGATION STYLES ===== */
.navigation {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* ===== CONTENT STYLES ===== */
.content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    text-align: center;
}

.subsection {
    margin-bottom: 40px;
}

.subsection h3 {
    color: #34495e;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.subsection h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

/* ===== BOX STYLES ===== */
.highlight-box {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-left: 5px solid #667eea;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.warning-box {
    background: linear-gradient(135deg, #ff6b6b15, #ee5a2415);
    border-left: 5px solid #ff6b6b;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
}

.success-box {
    background: linear-gradient(135deg, #00d26415, #01a3a415);
    border-left: 5px solid #00d264;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
}

.advanced-section {
    background: linear-gradient(135deg, #2c3e5015, #34495e15);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #34495e;
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow-x: auto;
    border-left: 5px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
}

/* ===== TABLES ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.comparison-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

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

/* ===== LISTS ===== */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    position: relative;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 20px;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

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

.checklist li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 35px;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #00d264;
    font-weight: bold;
    font-size: 18px;
}

/* ===== TOOL GRID ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tool-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #667eea;
}

.toc h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.toc li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.toc a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== PROGRESS INDICATOR ===== */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: white;
}

.progress-step.active {
    background: #667eea;
}

.progress-step.completed {
    background: #00d264;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    margin-top: 40px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .main-header h1 {
        font-size: 2.5rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .content {
        padding: 20px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .subsection h3 {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.content {
    animation: fadeIn 0.5s ease-in;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navigation,
    .copy-btn {
        display: none;
    }
    
    .content {
        background: white;
        box-shadow: none;
    }
    
    .code-block {
        background: #f5f5f5;
        color: black;
        border: 1px solid #ddd;
    }
}