/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Mukesh Kumar
Author URI: https://neareshop.com
Description: Child theme for GeneratePress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* GeneratePress Theme Default Overrides */
.grid-container,
.main-navigation .inside-navigation,
.site-header .inside-header {
    max-width: 1140px !important;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header {
    background-color: #ffffff;
}

/* Override GeneratePress Container Styles */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
    background-color: transparent;
    padding: 0;
}

/* Structure Fixes */
#primary {
    width: 100%;
    margin: 0 auto;
    float: none;
}

.site-content {
    padding: 0;
}

/* PUBG Landing Page Template Styles */
.pubg-landing-page {
    /* Reset theme defaults */
    .entry-content,
    .entry-header {
        margin: 0;
        display: none;
    }

    .inside-article {
        padding: 0;
        background-color: transparent;
    }

    /* Content Container */
    .content-container {
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
        margin: 40px auto;
        max-width: 1000px;
        padding: 0;
        overflow: hidden;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 40px;
        background: linear-gradient(135deg, var(--hero-gradient-start, #1a1a2e), var(--hero-gradient-end, #16213e));
        text-align: center;
        color: #ffffff;
        border-radius: 0px;
    }

    .hero-content {
        max-width: 900px;
        margin: 0 auto;
    }

    .hero-image-wrapper {
        margin: 0 auto 30px;
        max-width: 300px;
        transform: perspective(1000px) rotateY(-5deg);
        transition: transform 0.5s ease;

        &:hover {
            transform: perspective(1000px) rotateY(5deg) translateY(-10px);
        }
    }

    .hero-image {
        width: 100%;
        height: auto;
        border-radius: 5px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        transition: all 0.5s ease;
    }

    .hero-title {
        font-size: 48px;
        margin: 0 0 30px;
        color: #ffffff;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.5px;
    }

    .download-button-wrapper {
        margin: 0;
    }

    .download-button {
        display: inline-block;
        padding: 18px 45px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.4s ease;
        background: linear-gradient(45deg, #4B0082, #800080);
        color: #ffffff;
        box-shadow: 0 10px 20px rgba(75, 0, 130, 0.3);

        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(75, 0, 130, 0.4);
            background: linear-gradient(45deg, #800080, #4B0082);
            color: #ffffff;
            text-decoration: none;
        }
    }

    /* Description Section */
    .description-section {
        padding: 60px 40px;
        max-width: 900px;
        margin: 0 auto;
    }

    .description-box {
        background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
        border-radius: 20px;
        padding: 40px;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }

        h2 {
            color: #1a1a2e;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;

            &:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 60px;
                height: 4px;
                background: linear-gradient(45deg, #4B0082, #800080);
                border-radius: 2px;
            }
        }
    }

    .rich-text-content {
        line-height: 1.8;
        color: #2a2a3a;
        font-size: 18px;

        p {
            margin-bottom: 20px;
        }

        strong {
            color: #4B0082;
            font-weight: 600;
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .content-container {
            margin: 20px;
            border-radius: 15px;
        }

        .hero-section {
            padding: 40px 20px;
        }

        .hero-image-wrapper {
            max-width: 250px;
            margin: 0 auto 20px;
        }

        .hero-title {
            font-size: 36px;
            margin: 0 0 20px;
        }

        .description-section {
            padding: 30px 20px;
        }

        .description-box {
            padding: 30px;
            
            h2 {
                font-size: 28px;
            }
        }

        .rich-text-content {
            font-size: 16px;
        }

        .download-button {
            padding: 15px 35px;
            font-size: 16px;
        }
    }

    /* Table of Contents */
    .toc-container {
        background: var(--toc-bg);
        border-radius: 15px;
        padding: 30px;
        margin-bottom: 40px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    .toc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .toc-title {
        font-size: 24px;
        font-weight: 600;
        color: var(--toc-title);
        margin: 0;
    }

    .toc-toggle {
        border: none;
        padding: 8px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 15px;
        background: transparent;
        color: var(--toc-number-bg);
        transition: transform 0.3s ease;
    }

    .toc-toggle .dashicons {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }

    .toc-toggle.active .dashicons {
        transform: rotate(180deg);
    }

    .toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .toc-list.active {
        display: grid;
    }

    .toc-item {
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
    }

    .toc-number {
        background: var(--toc-number-bg);
        color: var(--toc-number-color);
        width: 28px;
        height: 28px;
        border-radius: 12%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin-right: 15px;
        flex-shrink: 0;
        margin-left: 10px;
    }

    .toc-item a {
        color: var(--toc-link);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        flex-grow: 1;
    }

    .toc-item a:hover {
        color: var(--toc-link-hover);
    }

    @media (max-width: 768px) {
        .toc-container {
            padding: 20px;
        }

        .toc-list {
            grid-template-columns: 1fr;
        }

        .toc-item {
            padding: 10px 0;
        }
    }

    /* Content Sections */
    .content-section {
        padding: 5px;
        max-width: 900px;
        margin: 0 auto;
    }

    .content-box {
        margin-bottom: 5px;
        
        h2, h3 {
            color: #1a1a2e;
            font-weight: 700;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;

            &:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 60px;
                height: 4px;
                /*background: linear-gradient(45deg, #4B0082, #800080);*/
                border-radius: 2px;
            }
        }

        h2 {
            font-size: 32px;
        }

        h3 {
            font-size: 28px;
        }
    }
}

/* Main Content Layout */
.content-section {
    padding: 16px;
    max-width: 1000px;
    margin: 0 auto;
    background: #fafafa;
}

/* Main wrapper updates */
.content-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    max-width: 1000px;
    overflow: hidden;
}

/* Modern Table of Contents */
.toc-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.toc-list {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.toc-list.active {
    display: grid;
}

.toc-item {
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.toc-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

.toc-number {
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 10px;
    background: var(--toc-number-bg);
    color: var(--toc-number-color);
    margin-left:10px;
}

.toc-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

/* Modern Content Cards */
.content-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 5px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.content-box:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.content-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--toc-number-bg);
}

/* Content text styling */
.rich-text-content {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
}

.rich-text-content p {
    margin-bottom: 12px;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.rich-text-content p:first-of-type {
    font-size: 16px;
    color: #444;
    margin-top: 8px;
    line-height: 1.7;
}

.rich-text-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .content-container {
        margin: 10px auto;
        border-radius: 4px;
    }

    .content-section {
        padding: 5px;
    }

    .toc-container,
    .content-box {
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .rich-text-content,
    .rich-text-content p {
        text-align: justify !important;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        word-break: break-word;
    }

    .rich-text-content {
        font-size: 14px;
        padding: 0 2px;
    }

    .rich-text-content p:first-of-type {
        text-align: justify !important;
        font-size: 15px;
        margin-top: 6px;
    }
}

/* Fix for WebKit browsers (Safari) */
@supports (-webkit-hyphens: auto) {
    .rich-text-content,
    .rich-text-content p {
        -webkit-hyphenate-limit-before: 3;
        -webkit-hyphenate-limit-after: 3;
        /*-webkit-hyphenate-limit-chars: 6 3 3;*/
        -webkit-hyphenate-limit-lines: 2;
        -webkit-hyphenate-limit-last: always;
        -webkit-hyphenate-limit-zone: 8%;
    }
}

/* Clean Typography */
.content-title,
.toc-title,
.rich-text-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reduced Spacing Between Sections */
.content-box + .content-box {
    margin-top: 16px;
}

/* Subtle Background */
.content-section {
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Custom Button Shortcode Styles */
.custom-button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Sizes */
.custom-button.button-small {
    padding: 8px 20px;
    font-size: 14px;
}

.custom-button.button-medium {
    padding: 12px 25px;
    font-size: 16px;
}

.custom-button.button-large {
    padding: 15px 35px;
    font-size: 18px;
}

/* Hover Effects */
.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
    text-decoration: none;
    opacity: 0.95;
}

/* Active State */
.custom-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .custom-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .custom-button.button-large {
        padding: 12px 30px;
        font-size: 16px;
    }

    .custom-button.button-small {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Remove underline from headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 600;
}

/* Improve text readability */
.entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #2a2a3a;
    margin-bottom: 1.5em;
}

/* Style links in content */
.entry-content a {
    color: #4B0082;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #6a1b9a;
    text-decoration: none;
}

/* Add space between sections */
.entry-content > * + * {
    margin-top: 2em;
}

/* Make headings more attractive */
.entry-content h1 {
    font-size: 2.5em;
    margin-top: 1.5em;
}

.entry-content h2 {
    font-size: 2em;
    margin-top: 1.3em;
}

.entry-content h3 {
    font-size: 1.5em;
    margin-top: 1.2em;
}

/* Improve list readability */
.entry-content ul,
.entry-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    color: #2a2a3a;
}

.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Modern FAQ Section Styles */
.faq-section {
    margin: 40px 0;
    padding: 0;
    width: 100%;
}

.faq-title {
    text-align: center;
    font-size: 2em;
    color: #1a1a2e;
    margin-bottom: 30px;
    font-weight: 700;
}

.faq-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.faq-question {
    padding: 20px;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

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

.faq-question.active {
    background: #6b21a8;
    color: #fff;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    background: #4B0082;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
    background: #fff;
    color: #6b21a8;
}

/* Conclusion Section Styles */
.conclusion-section {
    margin: 40px 0;
    padding: 0;
    width: 100%;
}

.conclusion-title {
    text-align: center;
    font-size: 2em;
    color: #1a1a2e;
    margin-bottom: 30px;
    font-weight: 700;
}

.conclusion-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

.conclusion-content {
    color: #2a2a3a;
    line-height: 1.8;
}

.conclusion-content p {
    margin-bottom: 1em;
}

.conclusion-content strong {
    color: #4B0082;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .conclusion-section {
        margin: 30px 0;
    }
    
    .conclusion-container {
        padding: 20px;
    }
} 

