/*
Theme Name: InstaprosApp
Theme URI: http://instaprosapp.in/
Author: KK Developer
Author URI: http://instaprosapp.in
Description: Premium mobile-first theme with official Instagram colors.
Version: 1.3.8
Text Domain: instaprosapp
Requires PHP: 7.4
License: GPLv2 or later
*/

/* CSS Variables for Instagram Theme */
:root.light-mode {
    --bg-color: #fafafa;
    /* Original Instagram light background */
    --content-bg: #fafafa;
    --text-color: #262626;
    /* Original Instagram dark text */
    --text-muted: #8e8e8e;
    --card-bg: #ffffff;
    --primary-color: #E1306C;
    /* Instagram Pink */
    --hover-color: #C13584;
    --border-color: #dbdbdb;
    /* Instagram border */
    --topbar-bg: #262626;
    --topbar-text: #ffffff;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

:root.dark-mode {
    --bg-color: #000000;
    --content-bg: #000000;
    --text-color: #f5f5f5;
    --text-muted: #a8a8a8;
    --card-bg: #121212;
    --primary-color: #E1306C;
    --hover-color: #FD1D1D;
    --border-color: #262626;
    --topbar-bg: #121212;
    --topbar-text: #ffffff;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body {
    background-color: var(--content-bg);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 5px 0;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.top-bar a {
    color: var(--topbar-text);
    text-decoration: none;
}

/* Header with Instagram Gradient */
.site-header {
    background: var(--insta-gradient);
    color: #ffffff;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    margin: 15px 20px;
    max-width: 1000px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative; /* For absolute dropdown */
}

@media (min-width: 1040px) {
    .site-header {
        margin: 15px auto;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 26px;
    letter-spacing: -0.5px;
}

/* Navigation */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #ffffff;
}

.main-navigation {
    background: transparent;
    margin: 0 20px;
    flex-grow: 1;
}

.dark-mode .main-navigation {
    background: transparent;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-navigation a {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    display: block;
    transition: background 0.2s;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: var(--insta-gradient);
    color: #ffffff;
    padding: 60px 40px;
    border-radius: 30px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}
.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.25;
    /* Two-Tone Color Effect */
    background: linear-gradient(135deg, #ffffff 40%, #ffe866 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff; /* Fallback */
}
.highlight-letter {
    font-size: 1.4em;
    font-weight: 900;
    -webkit-text-fill-color: #00e5ff; /* Cyan color */
    line-height: 1;
}
.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}
@keyframes flameAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-button {
    position: relative;
    z-index: 1;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    display: table;
    margin: 0 auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff0000, #ff5a00, #ff9a00, #ffce00, #ff9a00, #ff5a00, #ff0000);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 54px;
    animation: flameAnimation 2.5s ease infinite;
}
.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.4);
    text-decoration: none;
    opacity: 1;
}

/* Layout Grid */
.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    max-width: 100%;
    margin: 0 auto;
}

.site-main {
    flex: 1 1 65%;
}

.widget-area {
    flex: 1 1 30%;
}

/* Cards (Content & Sidebar) */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* Instagram's softer corners */
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-mode .card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* Buttons & Headings */
button,
.button {
    background: var(--insta-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    /* Softer radius */
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    opacity: 0.9;
}


h1,
h2,
h3 {
    color: var(--text-color);
    font-weight: 600;
}

/* Advanced Heading Clone (Kadence-style) */
.adv-heading {
    text-align: center;
    border-top: 0px solid transparent;
    border-right: 15px solid var(--primary-color);
    border-bottom: 0px solid transparent;
    border-left: 15px solid var(--primary-color);
    border-radius: 20px;
    padding: 10px;
    margin: 30px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Footer */
.site-footer {
    background: var(--bg-color);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.site-footer a {
    color: var(--primary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--insta-gradient);
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        z-index: 999;
        margin: 10px 0 0 0;
        animation: fadeInDown 0.3s ease forwards;
    }
    .main-navigation.toggled {
        display: block !important;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 5px;
    }
    .main-navigation a {
        text-align: center;
        padding: 12px;
        background: rgba(0,0,0,0.15);
        border-radius: 10px;
        font-size: 16px;
    }
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .site-header {
        border-radius: 20px;
        padding: 20px 15px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.25;
    }
    .hero-subtitle {
        margin: 0 auto 25px auto;
        text-align: center;
    }
    .hero-image svg {
        width: 180px;
        height: auto;
        margin-top: 20px;
    }
}

/* Warning Box */
.warning-box {
    background-color: #fff3f3;
    border: 1px solid #ffb3b3;
    border-left: 4px solid #ff4d4d;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}
.warning-box h3 {
    color: #cc0000;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}
.warning-box p:last-child {
    margin-bottom: 0;
}
:root.dark-mode .warning-box {
    background-color: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.3);
    border-left-color: #ff4d4d;
}
:root.dark-mode .warning-box h3 {
    color: #ff6b6b;
}

/* Icon List Feature */
.icon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.icon-list-item {
    display: flex;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.icon-wrapper {
    background: var(--insta-gradient);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
}
.icon-list-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    color: var(--text-color);
}
.icon-list-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Caution Box */
.caution-box {
    background-color: #fff9e6;
    border: 1px solid #ffe680;
    border-left: 4px solid #ffcc00;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}
.caution-box h3 {
    color: #b38f00;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}
.caution-box p:last-child {
    margin-bottom: 0;
}
:root.dark-mode .caution-box {
    background-color: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    border-left-color: #ffcc00;
}
:root.dark-mode .caution-box h3 {
    color: #ffda47;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.specs-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.specs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #e1306c;
}
.specs-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.specs-icon svg {
    width: 30px;
    height: 30px;
}
.specs-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}
.specs-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}
:root.dark-mode .specs-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Modern Folded TOC Styling */
.modern-toc {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid rgba(225, 48, 108, 0.2);
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}
.modern-toc:hover {
    box-shadow: 0 12px 30px rgba(225, 48, 108, 0.1);
}
.modern-toc summary {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.1) 0%, rgba(225, 48, 108, 0.1) 100%);
    padding: 20px 25px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default arrow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
}
.modern-toc summary::-webkit-details-marker {
    display: none;
}
.modern-toc summary .toc-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modern-toc summary .toc-icon svg {
    color: #e1306c;
}
.modern-toc summary .toc-arrow {
    transition: transform 0.3s ease;
    color: #e1306c;
}
.modern-toc[open] summary {
    border-bottom: 1px solid rgba(225, 48, 108, 0.2);
}
.modern-toc[open] summary .toc-arrow {
    transform: rotate(180deg);
}
.modern-toc-content {
    padding: 25px;
}
.modern-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-toc-list li {
    margin-bottom: 8px;
}
.modern-toc-list li:last-child {
    margin-bottom: 0;
}
.modern-toc-list a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}
.modern-toc-list a::before {
    content: "📌";
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.modern-toc-list a:hover {
    background: rgba(225, 48, 108, 0.05);
    color: #e1306c;
    transform: translateX(5px);
}
.modern-toc-list a:hover::before {
    opacity: 1;
    transform: scale(1.1);
}
:root.dark-mode .modern-toc {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
:root.dark-mode .modern-toc summary {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.15) 0%, rgba(225, 48, 108, 0.15) 100%);
}
:root.dark-mode .modern-toc-list a:hover {
    background: rgba(225, 48, 108, 0.15);
}