/* Main Styles for MagisTV Premium Theme */

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
}

.header-content {
    padding: 0 1rem;
}

.site-branding .custom-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .menu-item {
    position: relative;
}

.nav-menu .menu-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-menu .menu-item a:hover {
    color: var(--primary);
}

.nav-menu .menu-item a:hover::after {
    width: 80%;
}

.nav-menu .menu-item.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: var(--transition);
}

.nav-menu .menu-item.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu .menu-item {
    margin: 0;
}

.nav-menu .sub-menu .menu-item a {
    padding: 0.75rem 1rem;
    display: block;
    color: var(--dark);
    white-space: nowrap;
}

.nav-menu .sub-menu .menu-item a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 1.5rem;
}

.nav-menu .sub-menu .menu-item a::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Search Bar */
.header-search {
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--dark);
    font-size: 0.9rem;
    width: 200px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 300px;
    background: white;
    box-shadow: var(--shadow-medium);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary);
    color: white;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary);
}

.search-result-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-section.parallax-enabled {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    margin-top: 3rem;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(-10px);
    }
    60% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* About App Section */
.about-app-section {
    background: var(--light);
    position: relative;
}

.section-header {
    max-width: 150%;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.features-grid {
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-description {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* Download Section */
.download-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    box-shadow: var(--shadow-medium);
}

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.download-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-buttons {
    margin-bottom: 2rem;
}

.download-btn img {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.download-btn:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.direct-download-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.version-info {
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    display: inline-block;
}

.version-text {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Blog Section */
.page-header-spacer {
    height: 100px;
}

.blog-section {
    background: white;
}

.blog-header {
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-img {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: #666;
}

.blog-category {
    color: var(--primary);
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.read-time {
    font-size: 0.9rem;
    color: #666;
}

/* Single Post Styles */
.single-post.single-post-main {
    padding-top: 80px;
}

.post-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: end;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.post-hero.parallax-bg {
    background-attachment: fixed;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
    display: flex;
    align-items: end;
    padding: 2rem 0;
}

.post-hero-content {
    color: white;
}

.post-header-no-image {
    background: var(--gradient);
    padding: 4rem 0 2rem 0;
    margin-bottom: 2rem;
}

.post-header-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.post-header-no-image .post-meta span {
    background: rgba(255, 255, 255, 0.15);
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.post-header-no-image .post-title {
    font-size: 3rem;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.post-content h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-content h2 {
    font-size: 2rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}

.post-content h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--light);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-medium);
}

.post-content code {
    background: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Post Tags */
.post-tags {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    background: var(--light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag-list a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.social-share h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy-link {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Author Bio */
.author-bio {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.author-avatar-large {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.author-details p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.related-posts-grid {
    gap: 1.5rem;
}

.related-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.related-post-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.related-post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-title a:hover {
    color: var(--primary);
}

.related-post-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.page-numbers a {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.page-numbers a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.page-numbers .current {
    background: var(--primary);
    color: white;
}

/* Ad Areas */
.header-ad-area {
    background: var(--light);
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.content-ad-area {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu .menu-item {
    margin: 1rem 0;
}

.mobile-nav-menu .menu-item a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: block;
}

.mobile-nav-menu .menu-item a:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Comments Section */
.comments-area {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.comments-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.comment-body {
    display: flex;
    gap: 1rem;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.comment-content-wrap {
    flex-grow: 1;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.comment-metadata a {
    color: #666;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary);
}

.comment-text {
    line-height: 1.6;
    color: var(--dark);
    margin: 1rem 0;
}

.comment-awaiting-moderation {
    color: var(--secondary);
    font-style: italic;
    display: block;
    margin: 0.5rem 0;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.reply a:hover {
    color: var(--secondary);
}

.comment-list .children {
    list-style: none;
    margin-left: 3rem;
    margin-top: 1rem;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.comment-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-notes {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.comment-reply-title small {
    font-size: 0.8em;
    font-weight: normal;
}

.comment-reply-title small a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-subtitle h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 1rem 0;
    text-align: left;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    background: rgba(37, 99, 235, 0.05);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.section-subtitle h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.25rem 0 0.75rem 0;
    text-align: left;
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.section-subtitle h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-subtitle p {
    margin-bottom: 1rem;
    text-align: left;
    text-indent: 1rem;
}

.section-subtitle ul,
.section-subtitle ol {
    margin: 1rem 0;
    padding-left: 2rem;
    background: var(--light);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary);
}

.section-subtitle li {
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle ul li::before {
    content: '▶';
    color: var(--primary);
    font-size: 0.8rem;
    position: absolute;
    left: -1.5rem;
    top: 0.1rem;
}

.section-subtitle strong {
    color: var(--primary);
    font-weight: 700;
}

.section-subtitle em {
    color: var(--secondary);
    font-style: italic;
}

/* Search Results Styles */
.search-results-section {
    background: white;
}

.search-header {
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.search-term {
    color: var(--primary);
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
}

.search-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.search-result-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.search-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.search-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.search-date {
    color: #666;
}

.search-category {
    color: var(--primary);
    font-weight: 600;
}

.search-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.search-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.search-card-title a:hover {
    color: var(--primary);
}

.search-card-excerpt {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.search-card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.no-search-results {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    color: #ccc;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.search-suggestions li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.search-suggestions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.search-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

/* ========== MOBILE OPTIMIZATION ADDITIONS ONLY ========== */
/* NO CODE REMOVED - ONLY ADDED MOBILE MEDIA QUERIES */

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
    }
    
    .site-branding .custom-logo img {
        height: 32px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 200px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .nav-menu .menu-item a:hover::after {
        width: 0;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section.parallax-enabled {
        background-attachment: scroll;
    }
    
    .feature-card,
    .blog-card {
        transition: none;
    }
}