/* Resource & Legal Pages Styles v1.0.0 */

.resource-page,
.legal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section .subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-section .last-updated {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
}

/* Content Wrapper */
.content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 25px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

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

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

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 10px;
    color: #444;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.step {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin: 15px 0;
    color: #333;
}

/* Platform Guides */
.platform-guide {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

.platform-guide h3 {
    color: #667eea;
    margin-top: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.tip-card h3 {
    font-size: 20px;
    margin: 10px 0 15px;
}

/* FAQ Items */
.faq-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #667eea;
    margin-top: 0;
}

/* Code Blocks */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-block code {
    color: #f8f8f2;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Tables */
.rate-table,
.error-table,
.cookie-table,
.duration-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rate-table thead,
.error-table thead,
.cookie-table thead,
.duration-table thead {
    background: #667eea;
    color: white;
}

.rate-table th,
.error-table th,
.cookie-table th,
.duration-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.rate-table td,
.error-table td,
.cookie-table td,
.duration-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.rate-table tr:hover,
.error-table tr:hover,
.cookie-table tr:hover,
.duration-table tr:hover {
    background: #f8f9fa;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.blog-post:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.post-image {
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.post-content h3 {
    margin: 10px 0 15px;
    color: #333;
}

.post-date {
    font-size: 14px;
    color: #888;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.category-card h3 {
    color: white;
    margin: 0 0 10px;
}

.category-card p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Popular Posts */
.popular-posts {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.popular-post {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.popular-post:last-child {
    border-bottom: none;
}

.post-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.popular-post h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.views {
    font-size: 13px;
    color: #888;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.newsletter-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 30px auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.newsletter-note {
    font-size: 14px;
    opacity: 0.9;
}

/* Support Page */
.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.help-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.help-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.help-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.help-card h3 {
    color: #667eea;
    margin: 10px 0;
}

.issue-solution {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.issue-solution h3 {
    color: #e74c3c;
    margin-top: 0;
}

.solution {
    margin-top: 15px;
}

/* Status List */
.status-list {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.status-item:last-child {
    border-bottom: none;
}

.status-icon {
    font-size: 24px;
}

.status-item.operational .status-icon {
    color: #27ae60;
}

.status-item h4 {
    margin: 0 0 5px;
}

.status-item p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

/* Browser Grid */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.browser-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.browser-item h4 {
    margin: 0 0 10px;
    color: #27ae60;
}

.browser-item p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Contact Page */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-info-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.info-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

/* Legal Pages */
.legal-content {
    line-height: 1.9;
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    color: #667eea;
    font-size: 28px;
    margin: 40px 0 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.contact-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.legal-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin: 50px 0;
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin-bottom: 30px;
}

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

.cta-button {
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: white;
    color: #667eea;
}

.cta-button.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Buttons */
.chat-button,
.chat-button-contact,
.submit-button,
.submit-button-contact {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.chat-button:hover,
.chat-button-contact:hover,
.submit-button:hover,
.submit-button-contact:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.submit-button-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 15px 40px;
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.submit-button-contact:hover .arrow {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .content-wrapper {
        padding: 25px;
    }
    
    .content-section h2 {
        font-size: 26px;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}
