/* Reset and Base Styles */
* {
    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-color: #f8f9fa;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #3498db;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.contact-info .phone {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-info .phone:hover {
    background: #229954;
}

/* Filter Menu */
.filter-menu {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.filter-menu.sticky {
    position: sticky;
    top: 80px;
    z-index: 90;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Main Feed */
.main-feed {
    padding: 30px 0;
    min-height: 100vh;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* Post Styles */
.post {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.post-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.post-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.category {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.date, .price {
    color: #888;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: #27ae60;
}

.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Hero Post */
.hero-post {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.hero-post .post-content h2 {
    color: white;
    font-size: 2.2rem;
}

.hero-post .post-content p {
    color: rgba(255,255,255,0.9);
}

.hero-post .category {
    background: rgba(255,255,255,0.2);
}

/* Campaign Post */
.campaign-content {
    position: relative;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.campaign-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.campaign-content h3 {
    color: white;
    margin-top: 20px;
}

.campaign-content p {
    color: rgba(255,255,255,0.9);
}

.campaign-features {
    list-style: none;
    margin: 20px 0;
}

.campaign-features li {
    padding: 8px 0;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

/* Tips List */
.tips-list {
    margin: 20px 0;
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.tips-list strong {
    color: #2c3e50;
}

/* Review Post */
.review-content {
    background: #f8f9fa;
}

.review-header {
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-details h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

#load-more {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header .container {
        padding: 15px 20px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .contact-info {
        display: none;
    }
    
    .filter-menu.sticky {
        top: 70px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-post .post-content h2 {
        font-size: 1.8rem;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .campaign-badge {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .reviewer-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Animation for filtered content */
.post.hidden {
    display: none;
}

.post.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Legal Pages Styles */
.page-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.rating-summary {
    margin-top: 30px;
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: #f39c12;
}

.rating-stars .stars {
    font-size: 1.5rem;
    color: #f39c12;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.legal-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.legal-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.legal-section h3 {
    color: #34495e;
    margin: 25px 0 15px 0;
}

.legal-section h4 {
    color: #34495e;
    margin: 20px 0 10px 0;
}

.legal-section ul, .legal-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    color: #666;
}

/* Service Features Lists */
.service-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.service-features li {
    padding: 5px 0;
    color: #2c3e50;
}

.service-benefits {
    margin: 30px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: #e8f6f3;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.benefit-item strong {
    color: #27ae60;
    display: block;
    margin-bottom: 8px;
}

/* Campaign Styles */
.campaign-features {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.campaign-features li {
    padding: 8px 0;
    font-weight: 500;
}

/* Pricing Tables */
.pricing-grid, .types-grid, .gas-grid, .discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pricing-item, .type-item, .gas-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.type-price, .gas-price {
    display: block;
    color: #27ae60;
    font-weight: bold;
    margin-top: 10px;
}

/* Contact Form Styles */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 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: #2c3e50;
}

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

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* FAQ Styles */
.faq-list {
    margin: 20px 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    margin: 0;
    color: #2c3e50;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.faq-answer {
    padding: 0 20px;
    display: none;
    background: white;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid #eee;
}

/* Cookie Tables */
.cookie-table {
    margin: 20px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.cookie-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .legal-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .benefits-grid,
    .pricing-grid,
    .types-grid,
    .gas-grid {
        grid-template-columns: 1fr;
    }
    
    .overall-rating {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
}
