/*
Theme Name: Netpeak Cloud
Theme URI: https://example.com
Author: Masik
Author URI: https://netpeak.dev
Description: Modern, clean and professional WordPress theme for Netpeak Cloud.
Version: 1.0
License: GPLv2 or later
Text Domain: netpeak-cloud
*/

@tailwind base;
@tailwind components;
@tailwind utilities;


:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --background-light: #f9fafb;
    --background-dark: #1f2937;
}

html {
    scroll-behavior: smooth;
}

/* Header scroll animations */
header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.animate-slideDown {
    animation: slideDown 0.3s ease-in-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.3s ease-in-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Mobile menu */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 50;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
}

ul.mobile-secondary-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    gap: 20px;
}

#mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-items {
    padding: 1rem 0;
}

.mobile-menu-items li {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-items a {
    display: block;
    padding: 1rem;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.mobile-menu-items a:hover {
    color: #00b3e3;
}

.mobile-menu-items .sub-menu {
    padding-left: 1rem;
    background-color: #f9fafb;
}

.mobile-menu-items .sub-menu a {
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-size: 0.875rem;
}

/* Footer styles */
.footer-widget {
    padding: 20px 0;
}

.footer-widget h2 {
    font-size: 26px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00b3e3;
}

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

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li:last-child {
    margin-bottom: 0;
}

.footer-widget ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-widget ul li a:hover {
    color: #00b3e3;
}

.footer-widget p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Submenu items */
.footer-widget .sub-menu {
    margin-top: 10px;
    margin-left: 15px;
}

.footer-widget .sub-menu li {
    margin-bottom: 8px;
}

.footer-widget .sub-menu a {
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-widget {
        padding: 15px 0;
    }

    .footer-widget h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
}

/* Blog Layout */
@media (min-width: 1024px) {
    .blog-container {
        display: flex;
        gap: 2rem;
    }

    .blog-main {
        width: 75%;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .blog-sidebar-container {
        width: 25%;
        flex-shrink: 0;
        flex-grow: 0;
    }
}

/* Blog Sidebar */
.blog-sidebar {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.blog-sidebar .widget {
    margin-bottom: 2rem;
}

.blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.blog-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-sidebar ul li:last-child {
    border-bottom: none;
}

.blog-sidebar ul li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-sidebar ul li a:hover {
    color: #00b3e3;
}

/* Search Widget */
.blog-sidebar .widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.blog-sidebar .widget_search .search-field {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s;
}

.blog-sidebar .widget_search .search-field:focus {
    border-color: #00b3e3;
}

.blog-sidebar .widget_search .search-submit {
    padding: 0.5rem 1rem;
    background: #00b3e3;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blog-sidebar .widget_search .search-submit:hover {
    background: #0099cc;
}

/* Comments */
.comments-area {
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list ol {
    list-style: none;
    padding-left: 2.5rem;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
}

.comment-metadata a {
    color: #6b7280;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #2563eb;
}

.comment-content {
    margin-top: 0.5rem;
    color: #4b5563;
}

.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.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: #2563eb;
    ring: 2px;
    ring-color: #93c5fd;
}

.submit-button {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

.comment-reply-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}