/*
Theme Name: شهرداری گناوه - پورتال هوشمند
Theme URI: https://gonaveh-municipality.ir
Author: تیم توسعه شهرداری گناوه
Description: قالب هوشمند شهری برای شهرداری گناوه
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: gonaveh-smart
*/

/* ===== Reset & Base ===== */
* {
    font-family: 'Vazir', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #0a192f 100%);
    overflow-x: hidden;
}

/* ===== Video Background ===== */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-bg-container video {
    width: 100%;
    height: auto;
    opacity: 0.2;
}

/* ===== Animated Waves ===== */
.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%2306b6d4'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 15s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave 20s linear infinite reverse;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.3;
    animation: wave 25s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Floating Particles ===== */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 20s infinite;
    z-index: 1;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ===== Glassmorphism ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ===== Neon Glow Effect ===== */
.neon-text {
    text-shadow: 
        0 0 10px rgba(6, 182, 212, 0.8),
        0 0 20px rgba(6, 182, 212, 0.6),
        0 0 30px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(6, 182, 212, 0.2);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(6, 182, 212, 0.8),
            0 0 20px rgba(6, 182, 212, 0.6),
            0 0 30px rgba(6, 182, 212, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(6, 182, 212, 1),
            0 0 30px rgba(6, 182, 212, 0.8),
            0 0 40px rgba(6, 182, 212, 0.6),
            0 0 50px rgba(6, 182, 212, 0.4);
    }
}

/* ===== Morphing Button ===== */
.morph-btn {
    position: relative;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    overflow: hidden;
    transition: all 0.4s;
}

.morph-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.morph-btn:hover::before {
    width: 300px;
    height: 300px;
}

.morph-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.5);
}

/* ===== Liquid Button ===== */
.liquid-btn {
    position: relative;
    overflow: hidden;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.liquid-btn:hover::before {
    left: 100%;
}

/* ===== Hexagon Grid ===== */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.hexagon {
    position: relative;
    width: 150px;
    height: 173px;
    background: rgba(6, 182, 212, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hexagon:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.hexagon2 {
    position: relative;
    width: 200px;
    height: 220px;
    background: rgba(6, 182, 212, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px;
}

.hexagon2 img {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    height: 110px;
    width: 100px;
}

.hexagon2 span {
    height: 50px;
    line-height: 25px;
    overflow: hidden;
}

.hexagon2:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: scale(1.1) rotate(5deg);
}

/* ===== Scan Line ===== */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(6, 182, 212, 0.3), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ===== Typing Animation ===== */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Progress Ring ===== */
.progress-ring {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.3s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* ===== Slider ===== */
.slider-dot {
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 32px;
    background: #f59e0b;
}

.news-slide {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.news-slide.active {
    opacity: 1;
    z-index: 2;
}

.news-slide .slide-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pixel-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 1px;
    z-index: 10;
    pointer-events: none;
}

.pixel {
    background-size: 1600% 1000%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pixel.active {
    opacity: 1;
    transform: scale(1);
}

.over {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    position: relative;
    bottom: 0px;
    width: 100%;
    height: 160px;
}

/* ===== Utility Classes ===== */
.small {
    font-size: 12px;
    display: block;
}

.small * {
    display: block;
    width: 100%;
    padding: 5px;
}

.w-100 {
    width: 35rem;
}

.h-100 {
    height: 35rem;
}

.flicker {
    opacity: 0.04;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-ocean {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hologram Effect ===== */
.hologram {
    position: relative;
    animation: hologram-flicker 0.1s infinite;
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* ===== Parallax ===== */
.parallax-layer {
    transition: transform 0.3s ease-out;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 25, 47, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22d3ee, #06b6d4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hexagon {
        width: 100px;
        height: 115px;
    }
}
/* ===== Comments Section ===== */
.comments-area {
    margin-top: 3rem;
}

/* Comment Item */
.comment-item {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.comment-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(-5px);
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    opacity: 0;
    transition: opacity 0.3s;
}

.comment-item:hover::before {
    opacity: 1;
}

/* Nested Comments */
.children {
    margin-top: 1.5rem;
    margin-right: 2rem;
    padding-right: 1.5rem;
    border-right: 2px solid rgba(6, 182, 212, 0.2);
}

.children .comment-item {
    background: rgba(6, 182, 212, 0.03);
}

/* Comment Avatar */
.comment-item .avatar {
    border-radius: 50%;
    transition: all 0.3s;
}

.comment-item:hover .avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Comment Author Link */
.comment-author-link {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.comment-author-link:hover {
    color: #06b6d4;
}

/* Comment Reply Link */
.comment-reply-link-wrapper a,
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.75rem;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.3s;
}

.comment-reply-link-wrapper a:hover,
.comment-reply-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* ===== Comment Form ===== */
.comment-form {
    position: relative;
    overflow: hidden;
}

.comment-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* Form Labels */
.comment-form label {
    display: block;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form label .required {
    color: #ef4444;
    margin-right: 0.25rem;
}

/* Form Inputs */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-family: 'Vazir', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form Paragraphs */
.comment-form p {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.comment-form p.comment-form-author,
.comment-form p.comment-form-email,
.comment-form p.comment-form-url {
    margin-bottom: 1rem;
}

/* Submit Button */
.comment-form .morph-btn {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.comment-form .morph-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

/* Cancel Reply Link */
.comment-form .cancel-comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    color: #ef4444;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.comment-form .cancel-comment-reply-link:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Logged In As */
.comment-form .logged-in-as {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.comment-form .logged-in-as a {
    color: #06b6d4;
    font-weight: bold;
    transition: color 0.3s;
}

.comment-form .logged-in-as a:hover {
    color: #22d3ee;
}

/* Comment Notes */
.comment-form .comment-notes {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Form Submit Wrapper */
.comment-form .form-submit {
    margin-top: 1.5rem;
}

/* Comment Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    transition: all 0.3s;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .children {
        margin-right: 1rem;
        padding-right: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-item .avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .comment-form {
        padding: 1.5rem !important;
    }
}
/* ===== رفع مشکل رنگ منو ===== */
nav.glass-card a,
nav.glass-card .menu-item a,
nav.glass-card li a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

nav.glass-card a:hover,
nav.glass-card .menu-item a:hover,
nav.glass-card li a:hover,
nav.glass-card .current-menu-item a {
    color: #22d3ee !important;
}

/* منوی موبایل */
#mobileMenu a,
#mobileMenu .menu-item a,
#mobileMenu li a {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

#mobileMenu a:hover,
#mobileMenu .menu-item a:hover {
    color: #22d3ee !important;
    transform: translateX(-5px);
}

/* زیرمنوها */
nav.glass-card .sub-menu,
nav.glass-card .children {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1rem;
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.5rem;
}

nav.glass-card .sub-menu li a,
nav.glass-card .children li a {
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: block;
}

nav.glass-card .sub-menu li a:hover,
nav.glass-card .children li a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee !important;
}

/* ===== رفع مشکل رنگ فوتر ===== */
footer a,
footer .widget a,
footer .widget li a {
    color: #9ca3af !important;
    transition: color 0.3s;
}

footer a:hover,
footer .widget a:hover,
footer .widget li a:hover {
    color: #22d3ee !important;
}

footer .widget,
footer .widget * {
    color: #9ca3af;
}

footer .widget h4,
footer .widget .widget-title {
    color: #ffffff !important;
    font-weight: bold;
    margin-bottom: 1rem;
}

footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .widget ul li {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

footer .widget p {
    color: #9ca3af;
    line-height: 1.8;
}

/* ===== استایل عمومی لینک‌ها در قالب ===== */
.glass-card a:not(.morph-btn):not(.liquid-btn):not(.hexagon):not(.hexagon2) {
    color: #22d3ee;
    transition: color 0.3s;
}

.glass-card a:not(.morph-btn):not(.liquid-btn):not(.hexagon):not(.hexagon2):hover {
    color: #67e8f9;
}