/**
 * Fair E Web Host - Consolidated Styles
 * Organized by: Social Media, Print, Services, Pricing
 */

/* ============================================
   SOCIAL MEDIA STYLES
   ============================================ */

/* Base Social Icon Styles */
.social-icons,
.social-sharing-buttons {
    display: flex;
    gap: 15px;
}

.social-icons {
    margin-top: 15px;
}

.social-sharing-buttons {
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Social Icon Links - Shared Styles */
.social-icons a,
.share-button,
.floating-social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a,
.share-button {
    color: white;
}

.social-icons a {
    background-color: var(--primary-color, #0d6efd);
}

.share-button {
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

/* Hover Effects */
.social-icons a:hover {
    background-color: var(--secondary-color, #6610f2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-button:hover,
.floating-social-bar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.floating-social-bar a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.social-icons i {
    font-size: 1.2rem;
}

/* Platform-Specific Colors */
.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-pinterest { background-color: #bd081c; }
.share-email { background-color: #505050; }
.share-whatsapp { background-color: #25d366; }
.share-reddit { background-color: #ff4500; }

/* Social Sharing with Text */
.social-sharing-with-text {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.social-sharing-with-text .share-button {
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 8px 15px;
}

.social-sharing-with-text .share-button i {
    margin-right: 8px;
}

/* Social Media Feeds */
.social-feed-container {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-feed-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.social-feed-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.social-feed-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.social-feed-content {
    padding: 20px;
    background-color: white;
    max-height: 500px;
    overflow-y: auto;
}

/* Twitter & Instagram Feeds */
#twitter-feed,
#instagram-feed {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

#twitter-feed {
    background-color: white;
}

.instagram-placeholder {
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
}

.instagram-placeholder a {
    color: var(--primary-color, #0d6efd);
    font-weight: 600;
    text-decoration: none;
}

.instagram-placeholder .note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 10px;
}

/* Social Media Grid */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Follow Us Banner */
.follow-us-banner {
    background: linear-gradient(135deg, var(--primary-color, #0d6efd) 0%, var(--secondary-color, #6610f2) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin: 60px 0;
}

.follow-us-banner h2 {
    margin-bottom: 20px;
}

.follow-us-banner .social-icons {
    justify-content: center;
    margin-top: 25px;
}

.follow-us-banner .social-icons a {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
}

.follow-us-banner .social-icons a:hover {
    background-color: white;
    color: var(--primary-color, #0d6efd);
}

/* Floating Social Bar */
.floating-social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.floating-social-bar a {
    background-color: white;
    color: var(--primary-color, #0d6efd);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SERVICES PAGES STYLES
   ============================================ */

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #3a3a4e 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.service-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.service-hero .btn-primary {
    padding: 15px 30px;
    font-size: 18px;
    margin-top: 20px;
}

/* Service Overview Section */
.service-overview {
    padding: 80px 0;
    background-color: white;
}

.service-overview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 16px;
    line-height: 1.8;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Section Headers - Shared Styles */
.overview-content h2,
.service-features h2,
.service-plans h2,
.service-benefits h2,
.service-faq h2,
.pricing-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.overview-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-features h2::after,
.service-benefits h2::after,
.service-faq h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-features h2,
.service-plans h2,
.service-benefits h2,
.service-faq h2,
.pricing-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* Service Features Section */
.service-features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-item:hover,
.benefit-item:hover {
    transform: translateY(-5px);
}

.feature-item:hover {
    border-color: var(--primary-color);
}

.feature-icon,
.benefit-icon {
    border-radius: 50%;
    background-color: rgba(106, 79, 255, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Service Plans Section */
.service-plans {
    padding: 80px 0;
    background-color: white;
}

.service-plans h2 {
    margin-bottom: 20px;
}

.service-plans p.subtitle,
.pricing-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray-color);
    font-size: 18px;
}

.pricing-section .section-subtitle {
    margin-bottom: 30px;
}

/* Service Benefits Section */
.service-benefits {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin-right: 20px;
}

.benefit-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.benefit-content p {
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Service FAQ Section */
.service-faq {
    padding: 80px 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: var(--dark-color);
}

.faq-question i {
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active {
    background-color: var(--primary-color);
}

.faq-question.active h3,
.faq-question.active i {
    color: white;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Service CTA Section */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a70ff 100%);
    color: white;
    text-align: center;
}

.service-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.service-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 15px 30px;
}

.service-cta .btn-primary:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* ============================================
   PRICING SECTION STYLES
   ============================================ */

.pricing-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Pricing Cards Layout */
.pricing-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.price .currency {
    font-size: 24px;
    vertical-align: super;
}

.price .period {
    font-size: 16px;
    color: var(--gray-color);
    font-weight: normal;
}

.billing-note {
    font-size: 14px;
    color: var(--gray-color);
}

.card-body {
    padding: 20px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.features-list li strong {
    color: var(--dark-color);
}

.card-footer {
    text-align: center;
    padding-top: 20px;
}

.card-footer .btn-primary {
    width: 100%;
    padding: 12px;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.toggle-label {
    font-weight: 600;
    color: var(--gray-color);
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

.pricing-card .annual {
    display: none;
}

/* Custom Plan Section */
.custom-plan {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-plan h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.custom-plan p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* General Print Styles */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
        font-family: "Times New Roman", Times, serif;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Hide non-essential elements */
    header nav,
    .mobile-menu,
    .hero-section,
    .cta-section,
    .newsletter-section,
    footer .footer-links,
    footer .social-links,
    .breadcrumbs-container,
    .kb-search-container,
    .kb-article-feedback,
    .kb-article-tags,
    .kb-article-related,
    button,
    .btn,
    #cookie-consent-banner,
    .scroll-to-top,
    .mobile-nav-toggle,
    video,
    audio,
    iframe,
    canvas {
        display: none !important;
    }
    
    /* Show only essential header elements */
    header {
        border-bottom: 1pt solid #000;
        margin-bottom: 20pt;
        padding-bottom: 10pt;
    }
    
    header .logo {
        display: block;
        max-width: 200pt;
        margin: 0 auto;
    }
    
    /* Adjust container width */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Typography adjustments */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
        color: #000 !important;
    }
    
    h1 {
        font-size: 24pt;
        margin-top: 0;
    }
    
    h2 {
        font-size: 18pt;
        margin-top: 20pt;
    }
    
    h3 {
        font-size: 16pt;
    }
    
    p, ul, ol, table {
        page-break-inside: avoid;
        margin-bottom: 10pt;
    }
    
    /* Links */
    a {
        color: #000 !important;
        text-decoration: none;
    }
    
    /* Add URL after links for reference */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-style: italic;
    }
    
    /* Don't show URL for internal links and anchors */
    a[href^="#"]:after,
    a[href^="/"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
        display: block;
        margin: 10pt 0;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        margin: 15pt 0;
    }
    
    th, td {
        border: 1pt solid #000;
        padding: 5pt;
        text-align: left;
    }
    
    th {
        background-color: #f0f0f0 !important;
    }
    
    /* Pricing tables */
    .pricing-table {
        page-break-inside: avoid;
    }
    
    /* Code blocks */
    pre, code {
        background-color: #f0f0f0 !important;
        border: 1pt solid #ccc;
        page-break-inside: avoid;
        font-family: "Courier New", Courier, monospace;
        font-size: 10pt;
    }
    
    /* Page breaks */
    .page-break {
        page-break-before: always;
    }
    
    /* Footer for print */
    .print-footer {
        display: block !important;
        text-align: center;
        margin-top: 20pt;
        padding-top: 10pt;
        border-top: 1pt solid #000;
        font-size: 10pt;
    }
    
    /* Knowledge Base Article specific */
    .kb-article-content {
        padding: 0;
    }
    
    .kb-article-header {
        background: none !important;
        padding: 0;
        color: #000 !important;
    }
    
    .kb-article-meta {
        color: #000 !important;
        margin-bottom: 20pt;
    }
    
    /* Service pages specific */
    .service-features,
    .service-comparison {
        page-break-inside: avoid;
    }
    
    /* Contact page specific */
    .contact-info {
        page-break-inside: avoid;
    }
    
    .contact-form {
        display: none;
    }
    
    /* Add print-only footer with copyright and URL */
    body:after {
        content: "© 2025 Fair E Web Host. Printed from https://faireweb.host";
        display: block;
        text-align: center;
        font-size: 10pt;
        margin-top: 20pt;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet and below */
@media (max-width: 992px) {
    .service-overview .container {
        grid-template-columns: 1fr;
    }
    
    .overview-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .overview-image img {
        max-height: 400px;
        object-fit: cover;
        width: 100%;
    }
    
    .pricing-cards {
        flex-wrap: wrap;
    }
    
    .pricing-card {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 20px;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    /* Social Media Responsive */
    .floating-social-bar {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin: 20px 0;
    }
    
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Responsive */
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero h1 {
        font-size: 36px;
    }
    
    .service-hero p {
        font-size: 18px;
    }
    
    .service-overview,
    .service-features,
    .service-plans,
    .service-benefits,
    .service-faq,
    .service-cta {
        padding: 60px 0;
    }
    
    .overview-content h2,
    .service-features h2,
    .service-plans h2,
    .service-benefits h2,
    .service-faq h2,
    .service-cta h2 {
        font-size: 30px;
    }
    
    .feature-item,
    .benefit-item {
        padding: 20px;
    }
    
    /* Pricing Responsive */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        flex: 0 0 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .service-hero h1 {
        font-size: 28px;
    }
    
    .service-hero p {
        font-size: 16px;
    }
    
    .service-hero .btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .overview-content h2,
    .service-features h2,
    .service-plans h2,
    .service-benefits h2,
    .service-faq h2,
    .service-cta h2 {
        font-size: 24px;
    }
    
    .service-plans p.subtitle {
        font-size: 16px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .benefit-icon i {
        font-size: 16px;
    }
    
    .benefit-content h3 {
        font-size: 18px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}

