/* =================================
   Freelance Guide Page Styles
   ================================= */

/* Import base styles */
@import '../theme/variables.css';
@import '../base/reset.css';
@import '../base/typography.css';
@import '../base/layout.css';
@import '../base/components.css';

/* Hero Section */
.guide-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.guide-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--color-white) !important;
}

.guide-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--color-white) !important;
}

/* Main Content */
.guide-content {
    background-color: var(--color-background-light);
    padding: 80px 0;
}

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

/* Section Styles */
.guide-section {
    background: var(--color-white);
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px var(--color-shadow-light);
}

.guide-section h2 {
    font-size: 32px;
    color: var(--color-text);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.guide-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.guide-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* Key Points */
.key-points {
    background-color: var(--color-background-accent);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.key-points h3 {
    font-size: 24px;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.point-item {
    text-align: center;
}

.point-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.point-item h4 {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.point-item p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

/* Steps Container */
.steps-container {
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--color-background-light);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.step-content ul {
    margin: 0;
    padding-left: 20px;
}

.step-content li {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Service List */
.service-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.service-item:hover {
    box-shadow: 0 5px 20px var(--color-shadow);
    transform: translateY(-2px);
}

.service-item h3 {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-features span {
    background-color: var(--color-background-secondary);
    color: var(--color-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.service-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}

.service-link:hover {
    color: var(--color-primary-dark);
}

/* Formula Box */
.formula-box {
    background-color: var(--color-background-accent);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

.formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.formula-item {
    background-color: var(--color-white);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    color: var(--color-text);
    box-shadow: 0 2px 8px var(--color-shadow-light);
}

.formula-plus,
.formula-equals {
    font-size: 24px;
    color: var(--color-primary);
    font-weight: bold;
}

.formula-result {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--color-accent-shadow);
}

.formula-description {
    color: var(--color-text-light);
    font-size: 14px;
}

/* Timeline Header */
.timeline-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.timeline-phase {
    text-align: center;
    padding: 20px;
    background-color: var(--color-background-accent);
    border-radius: 8px;
}

.phase-title {
    display: block;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 5px;
}

.phase-duration {
    display: block;
    color: var(--color-primary);
    font-size: 14px;
}

/* Action Box */
.action-box {
    background-color: var(--color-background-secondary);
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.action-box strong {
    color: var(--color-primary);
    margin-right: 10px;
}

.action-box a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.action-box a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* Success Stories */
.success-stories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background-color: var(--color-background-light);
    border-radius: 12px;
    padding: 30px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.story-header img {
    width: 50px;
    height: 50px;
}

.story-info strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
}

.story-info span {
    color: var(--color-text-light);
    font-size: 14px;
}

.story-result {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--color-background-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
}

.story-result .before {
    color: var(--color-text-light);
    font-size: 14px;
}

.story-result .arrow {
    color: var(--color-secondary);
    font-weight: bold;
}

.story-result .after {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
}

.story-card p {
    color: var(--color-text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-background-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--color-shadow);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.tool-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.tool-link:hover {
    color: var(--color-primary-dark);
}

/* Service Item Updates */
.service-item.featured {
    border: 2px solid var(--color-primary);
    position: relative;
    padding-top: 50px;
}

.service-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.service-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat span {
    font-size: 12px;
    color: var(--color-text-light);
}

.service-cta {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.service-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Skills Table */
.skills-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px var(--color-shadow-lighter);
}

.skills-table thead {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.skills-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.skills-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
}

.skills-table tbody tr:hover {
    background-color: var(--color-background-light);
}

.skills-table td {
    padding: 15px;
    color: var(--color-text);
}

.skills-table td[rowspan] {
    background-color: var(--color-background-accent);
    font-weight: bold;
}

/* FAQ Section */
.faq-container {
    margin-top: 40px;
}

.faq-item {
    background-color: var(--color-background-light);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 3px 15px var(--color-shadow-light);
}

.faq-question {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.faq-question::before {
    content: 'Q';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    padding-left: 44px;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.guide-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    margin-top: 60px;
}

.cta-note {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 20px;
}

.guide-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.guide-cta h2::after {
    display: none;
}

.guide-cta p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    color: var(--color-white);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 12px var(--color-secondary-shadow);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-secondary-shadow-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-title {
        font-size: 32px;
    }
    
    .guide-subtitle {
        font-size: 18px;
    }
    
    .guide-section {
        padding: 30px 20px;
    }
    
    .guide-section h2 {
        font-size: 26px;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-header {
        grid-template-columns: 1fr;
    }
    
    .success-stories {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .skills-table {
        font-size: 14px;
    }
    
    .skills-table th,
    .skills-table td {
        padding: 10px;
    }
}