/*
Theme Name: P2P Point Theme
Theme URI: https://p2ppoint.com
Author: Mohammad Ali
Description: Premium Digital Wallet & Exchange WordPress Theme - Fixed Layout (Dark Mode).
Version: 1.0.0
Text Domain: p2p-point
*/

:root {
    --bg-dark: #090d16;
    --footer-bg: #0f172a;
    --accent-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0f172a; /* Dark Background */
    color: #cbd5e1; /* Light Text */
    display: flex;
    flex-direction: column;
}

header {
    position: relative;
    background-color: #1e293b; /* Dark Header */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    z-index: 1002;
    flex-shrink: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    line-height: 1.2;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    color: #f8fafc; /* White Logo Text */
}

.logo-text h1 .bd {
    color: #4ade80; /* Brighter Green for Dark Mode */
    position: relative;
}

.logo-text .tagline {
    color: #94a3b8; /* Muted Tagline */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 1px;
    text-transform: uppercase;
}

.menu-btn {
    background: #334155; /* Darker Menu Button */
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: #475569;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #f8fafc; /* White Hamburger Lines */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.slider-menu {
    background: linear-gradient(135deg, #15803d, #166534);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.slider-menu.open {
    max-height: calc(100vh - 140px);
}

.menu-list {
    list-style: none;
    padding: 15px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-list li {
    margin-bottom: 5px;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.menu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.menu-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.rotating-arrow {
    animation: spin-arrow 4s linear infinite;
}

@keyframes spin-arrow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.marqueeWrapper, .scrolling-name-wrapper {
    width: 100%;
    overflow: hidden;
    background: #1e293b; /* Darker Marquee Background */
    padding: 10px 0;
    border-bottom: 1px dashed #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.scrolling-name {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd; /* Light Blue for Dark Mode */
    white-space: nowrap;
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.content-area {
    flex: 1;
    width: 100%;
    position: relative;
    background: #0f172a; /* Dark Content Area */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0px; 
    display: flex;
    flex-direction: column;
}

.content-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.bottom-nav {
    position: relative; 
    width: 100%;
    background-color: #1e293b; /* Dark Bottom Nav */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1002;
    border-top: 1px solid #334155;
    flex-shrink: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8; /* Muted Text */
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    transition: color 0.2s ease;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: #4ade80; /* Bright Green Active/Hover */
}

.bottom-nav-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.native-content-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.native-content-container h1, .native-content-container h2, 
.native-content-container h3, .native-content-container h4, 
.native-content-container h5, .native-content-container h6 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #f8fafc; /* White Headings */
}
.native-content-container ul, .native-content-container ol {
    margin-bottom: 15px;
    padding-left: 20px;
}
.native-content-container li {
    margin-bottom: 5px;
    line-height: 1.6;
}
.native-content-container a {
    color: #4ade80;
    text-decoration: none;
}
.native-content-container a:hover {
    text-decoration: underline;
}
.native-content-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
.native-content-container blockquote {
    border-left: 4px solid #4ade80;
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 15px;
    background: #1e293b; /* Dark Blockquote */
    padding: 10px 15px;
    border-radius: 4px;
}

/* =========================================================================
   FOOTER DESIGN CSS (DARK MODE OPTIMIZED)
   ========================================================================= */

.footer-container {
    width: 100%;
    background: linear-gradient(180deg, #111827 0%, #030712 100%);
    padding: 80px 10% 40px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-box {
    background-color: #1e293b; /* Dark Logo Box */
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border-radius: 12px;
    margin-bottom: 28px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-icon {
    font-size: 32px;
    font-weight: 900;
    color: #f8fafc; /* White Icon Color */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon i {
    color: var(--accent-blue);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main-text {
    font-size: 28px;
    font-weight: bold;
    color: #f8fafc; /* White Main Text */
    line-height: 1;
}

.logo-sub-text {
    font-size: 10px;
    font-weight: bold;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.working-time {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 24px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.working-time::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.social-icons {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    text-decoration: none;
    display: inline-block;
}

.social-icons i {
    font-size: 38px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons i:hover {
    transform: translateY(-5px);
}

.social-icons i.fa-square-facebook:hover {
    color: #1877f2;
    filter: drop-shadow(0 5px 15px rgba(24, 119, 242, 0.4));
}

.social-icons i.fa-square-rss:hover {
    color: #ff6600;
    filter: drop-shadow(0 5px 15px rgba(255, 102, 0, 0.4));
}

.social-icons i.fa-square-youtube:hover {
    color: #ff0000;
    filter: drop-shadow(0 5px 15px rgba(255, 0, 0, 0.4));
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-section h2 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 35px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-blue) !important;
    transform: translateX(8px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 50px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom p {
    font-weight: 500;
}

.dmca-badge {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dmca-badge .dmca {
    background-color: #10b981;
    color: #042f2e;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.dmca-badge .protected {
    background-color: #030712;
    color: #ffffff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 60px 5% 30px 5%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}