/* Guide Pages Styles */

.guide-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 80px;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.guide-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.8;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Guide Content Layout */
.guide-content {
    padding: 3rem 0 5rem;
    background: var(--bg-secondary);
}

.guide-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.guide-sidebar {
    position: sticky;
    top: 120px;
}

.toc {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.toc h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
}

.toc a:hover,
.toc a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* Main Content */
.guide-main {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.guide-article {
    padding: 3rem;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.guide-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.guide-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.guide-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.guide-section ul,
.guide-section ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.guide-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.guide-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.pro-tip {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.pro-tip h4 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.pillar-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pillar-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.pillar-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pillar-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Technique Cards */
.technique-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.technique-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.technique-steps ol {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Matrix Grid */
.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.matrix-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    font-weight: 600;
}

.urgent-important {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.important-not-urgent {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.urgent-not-important {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.not-urgent-not-important {
    background: linear-gradient(135deg, #a0aec0, #718096);
}

.matrix-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.matrix-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

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

.tool-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.tool-category h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.tool-category ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tool-category li:last-child {
    border-bottom: none;
}

.tool-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.tool-category a:hover {
    text-decoration: underline;
}

/* Mistakes List */
.mistakes-list {
    margin: 2rem 0;
}

.mistake-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(245, 101, 101, 0.05);
    border: 1px solid rgba(245, 101, 101, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.mistake-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mistake-content h4 {
    color: #e53e3e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mistake-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.next-steps h3 {
    color: #38a169;
    margin-bottom: 1rem;
}

.next-steps ul {
    margin: 0;
}

.next-steps a {
    color: #38a169;
    font-weight: 600;
    text-decoration: none;
}

.next-steps a:hover {
    text-decoration: underline;
}

/* Recommended Articles */
.recommended-articles {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.recommended-articles h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.recommended-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recommended-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.recommended-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommended-item a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.recommended-item a:hover {
    color: var(--primary-color);
}

.recommended-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.recommended-content {
    flex: 1;
}

.recommended-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recommended-content span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .guide-article {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .guide-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guide-sidebar {
        position: static;
        order: 2;
    }

    .toc {
        padding: 1.5rem;
    }

    .guide-article {
        padding: 1.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .mistake-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guide-hero {
        padding: 4rem 0 2rem;
    }

    .guide-hero h1 {
        font-size: 1.8rem;
    }

    .guide-article {
        padding: 1rem;
    }

    .guide-section h2 {
        font-size: 1.8rem;
    }

    .guide-section h3 {
        font-size: 1.4rem;
    }

    .technique-card,
    .highlight-box,
    .pro-tip,
    .next-steps {
        padding: 1.5rem;
    }
}