/*!
Theme Name: Daniil Rapoport Portfolio
Theme URI: https://daniilrapoport.com
Author: Daniil Rapoport
Author URI: https://daniilrapoport.com
Description: Professional portfolio theme for quality and reliability engineering leadership
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daniilrapoport
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* Theme Styles - Tailwind CSS loaded via CDN in header.php */

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #eef2ff, #f8fafc);
    color: #1e293b;
}

/* Remove no-js styling when JS loads */
html.no-js body {
    opacity: 1;
}

/* Smooth transitions for elements */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

a {
    text-decoration: none;
}

/* Section animations */
section {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
button:hover:not(:disabled) {
    transform: translateY(-2px);
}

article:hover {
    transform: translateY(-4px);
}

/* Form styling */
input[type="text"],
input[type="email"],
textarea,
select {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    aside,
    header,
    .hidden {
        display: none !important;
    }
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    main {
        padding-left: 1rem !important;
    }
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Ensure proper contrast */
.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

/* Glass morphism support */
.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(48px);
    backdrop-filter: blur(48px);
}

/* Gradient text support */
.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadow for depth */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation for form submission */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Ensure links have proper contrast */
a {
    color: #1e40af;
}

a:visited {
    color: #7c3aed;
}

/* Responsive font sizing */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Icon styling */
i.fa {
    transition: all 0.3s ease;
}

/* Button transitions */
button {
    cursor: pointer;
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* WordPress Menu Styling */
.wp-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wp-nav-menu li {
    margin: 0;
    padding: 0;
}

.wp-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-nav-menu a:hover {
    background: linear-gradient(to right, #06b6d4, #2563eb);
    color: white;
    transform: translateY(-0.25rem);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

.wp-nav-menu a.current-menu-item,
.wp-nav-menu a.active {
    background: linear-gradient(to right, #06b6d4, #2563eb);
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.35);
}

.wp-nav-menu li.current-menu-item>a {
    background: linear-gradient(to right, #06b6d4, #2563eb);
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.35);
}

aside nav a.is-active-menu {
    background: linear-gradient(to right, #06b6d4, #2563eb);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.35);
}

.wp-nav-menu ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
    gap: 0.25rem;
}

.wp-nav-menu ul ul a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* Mobile Menu Styling */
.mobile-nav .wp-nav-menu {
    gap: 0.25rem;
}

.mobile-nav .wp-nav-menu a {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    color: #1e3a8a;
}

.mobile-nav .wp-nav-menu a:hover {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
}

.mobile-nav .wp-nav-menu a.current-menu-item {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.mobile-nav .wp-nav-menu li.current-menu-item>a {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.mobile-nav .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
