/*
Theme Name: DevStudio
Theme URI: https://devstudio.ru
Author: DevStudio Team
Author URI: https://devstudio.ru
Description: Премиум тема для студии веб-разработки. Поддержка WordPress 6.0+, полная адаптивность, современный дизайн.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devstudio
Domain Path: /languages
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, rtl-language-support
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0e17;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: #94a3b8;
    line-height: 1.7;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-cyan {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #64748b; margin-top: 0.5rem; }

.gallery-caption { font-size: 0.875rem; color: #64748b; }

.bypostauthor { }

.sticky { }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   GUTENBERG BLOCKS
   ============================================ */
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid #334155;
    background: transparent;
    color: #e2e8f0;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: rgba(34, 211, 238, 0.5);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background: #22d3ee;
    border-color: #22d3ee;
    color: #0a0e17;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #1e293b;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-body {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.comment-reply-link {
    color: #22d3ee;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    color: #e2e8f0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #475569;
}

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

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 60;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0a0e17;
        border-left: 1px solid #1e293b;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 50;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
}
