/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: white;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.logo-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.nav {
    display: none;
    gap: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.nav-link.active {
    color: #3b82f6;
    background: #eff6ff;
}

/* Main Content */
.main {
    padding: 32px 0;
    min-height: calc(100vh - 64px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.feature-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.feature-card p {
    color: #6b7280;
    font-size: 14px;
}

/* Guide Cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.guide-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.guide-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-card-icon {
    background: #3b82f6;
    color: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.guide-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.guide-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.guide-card:hover .guide-card-link {
    gap: 12px;
}

/* Help Banner */
.help-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.help-banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #1e40af;
}

.help-banner-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.help-banner p {
    color: #1e40af;
    margin-bottom: 24px;
}

.help-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.help-button:hover {
    background: #1d4ed8;
}

/* Guide Steps */
.guide-steps {
    max-width: 1000px;
    margin: 0 auto 48px;
}

.guide-step {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.guide-step:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.guide-step .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

/* Handle cards without images */
.guide-step:not(:has(.step-image)) .guide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-step:not(:has(.step-image)) .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

/* Cards with images */
.guide-step:has(.step-image) .guide-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 0;
}

.guide-step:has(.step-image) .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: calc(100% - 300px);
}

.guide-step .text-content h3 {
    color: #333333;
    margin: 0 0 12px;
    font-size: 1.5em;
}

.guide-step .text-content p {
    color: #555555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.guide-step .text-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.guide-step .text-content ul li {
    position: relative;
    padding-left: 25px;
    margin: 0 0 8px;
    color: #555555;
}

.guide-step .text-content ul li::before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: 0;
    top: 0;
}

.guide-step .text-content .tip {
    background-color: #e6f7ff;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    border-radius: 4px;
    color: #333333;
    font-size: 0.95em;
    margin-top: 16px;
}

.guide-step .text-content .tip strong {
    color: #0056b3;
}

.guide-step .text-content .recommendation {
    background-color: #e6ffe6;
    border-left: 4px solid #28a745;
    padding: 12px 16px;
    border-radius: 4px;
    color: #333333;
    font-size: 0.95em;
    margin-top: 16px;
}

.guide-step .text-content .recommendation strong {
    color: #1e7e34;
}

/* Image specific styles */
.step-image {
    flex-shrink: 0;
    margin-left: 24px;
    align-self: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 250px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: white;
    padding: 4px;
    object-fit: cover;
}

.guide-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.guide-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 16px;
}

.guide-content li {
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #15803d;
}

.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #d97706;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #2563eb;
}

.nav-button.secondary {
    background: #e5e7eb;
    color: #6b7280;
}

.nav-button.secondary:hover {
    background: #d1d5db;
}

/* Troubleshooting */
.troubleshooting-sections {
    max-width: 800px;
    margin: 0 auto 48px;
}

.troubleshooting-section {
    margin-bottom: 48px;
}

.troubleshooting-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.issue-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 16px;
}

.issue-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.solution h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.solution ul {
    list-style: disc;
    margin-left: 20px;
}

.solution li {
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Help Contact */
.help-contact {
    max-width: 800px;
    margin: 0 auto;
}

.help-contact h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    padding: 24px;
    text-align: center;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.contact-item p {
    color: #6b7280;
    margin-bottom: 8px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(0,0,0,0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .main {
        padding: 24px 0;
    }
    
    .page-header h1,
    .hero h1 {
        font-size: 28px;
    }
    
    .page-header p,
    .hero p {
        font-size: 16px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .guide-cards {
        grid-template-columns: 1fr;
    }
    
    .guide-step {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .guide-content {
        max-width: 100%;
    }
    
    .step-image {
        margin-left: 0;
        margin-top: 16px;
        align-self: center;
        width: 200px;
    }
    
    .step-image img {
        width: 100%;
        height: 150px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .guide-card {
        padding: 24px;
    }
    
    .guide-step {
        padding: 20px;
    }
    
    .issue-card,
    .contact-item {
        padding: 20px;
    }
}
