/* Adobe Hub - Custom CSS Styles */

/* Root Variables */
:root {
    --adobe-red: #FF0000;
    --adobe-blue: #001E36;
    --adobe-purple: #8E44AD;
    --adobe-orange: #FF6600;
    --adobe-gray: #505050;
    --adobe-light-gray: #F5F5F5;
    --adobe-dark-gray: #2C2C2C;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--adobe-red), var(--adobe-orange));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-20px) rotate(-3deg);
    }
}

.adobe-icon {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.adobe-icon:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: block;
}

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

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.product-card:focus {
    outline: 3px solid rgba(255, 0, 0, 0.3);
    outline-offset: 2px;
    text-decoration: none;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--adobe-red), var(--adobe-orange), var(--adobe-purple));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: translateX(0);
}

.content-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.content-card h3 {
    color: var(--adobe-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.content-card p {
    color: var(--adobe-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.content-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--adobe-light-gray);
}

.content-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.content-tag:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.content-tag:hover::before {
    left: 100%;
}

.tag-review {
    background: linear-gradient(135deg, #FF0000, #DC143C, #B22222);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.tag-review:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.tag-guide {
    background: linear-gradient(135deg, #8E44AD, #9B59B6, #7B1FA2);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.tag-guide:hover {
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.tag-tip,
.tag-tips {
    background: linear-gradient(135deg, #FF6600, #FF8C00, #FF4500);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.tag-tip:hover,
.tag-tips:hover {
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.tag-tutorial {
    background: linear-gradient(135deg, #001E36, #1976D2, #0D47A1);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 30, 54, 0.3);
}

.tag-tutorial:hover {
    box-shadow: 0 8px 25px rgba(0, 30, 54, 0.4);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--adobe-red), var(--adobe-orange));
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--adobe-orange), var(--adobe-red));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--adobe-blue);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid var(--adobe-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--adobe-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Section Headings */
.section-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--adobe-blue);
    margin-bottom: 16px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--adobe-red), var(--adobe-orange));
    border-radius: 2px;
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--adobe-light-gray);
    border-top: 4px solid var(--adobe-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Search Styles */
.search-highlight {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), rgba(255, 102, 0, 0.2));
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive Grid */
.responsive-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .content-card {
        padding: 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* 6-column product grid responsive */
    .grid.xl\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* Single column on mobile for products */
    .grid.xl\\:grid-cols-6 {
        grid-template-columns: 1fr;
    }
}

/* Tablet responsive for product grid */
@media (min-width: 769px) and (max-width: 1279px) {
    .grid.xl\\:grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 3px solid rgba(255, 0, 0, 0.3);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 3px solid rgba(255, 0, 0, 0.5);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: rgba(255, 0, 0, 0.2);
    color: var(--adobe-blue);
}

::-moz-selection {
    background: rgba(255, 0, 0, 0.2);
    color: var(--adobe-blue);
}

/* Article Content Styles */
.article-content {
    line-height: 1.8;
}

.article-content h2 {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--adobe-red), var(--adobe-orange));
    border-radius: 2px;
}

.article-content img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
}

.article-content blockquote {
    position: relative;
    font-style: italic;
    margin: 24px 0;
}

.article-content blockquote::before {
    content: '"';
    font-size: 4em;
    color: var(--adobe-red);
    position: absolute;
    left: -20px;
    top: -10px;
    font-family: serif;
    opacity: 0.3;
}

/* Featured Image Styles */
.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.featured-image img {
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* Article Card Image Overlay */
.content-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 30, 54, 0.8), rgba(255, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.content-card:hover .image-overlay {
    opacity: 1;
}

/* Comment Avatars */
.comment-avatar {
    background: linear-gradient(135deg, var(--adobe-purple), var(--adobe-blue));
}

/* Sidebar Sticky Positioning */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Article Navigation */
.article-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Carousel Styles */
.carousel-container {
    position: relative;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 4px;
}

.carousel-prev,
.carousel-next {
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--adobe-gray);
    transform: scale(1.1);
}

.carousel-prev:hover i,
.carousel-next:hover i {
    color: white;
}

.carousel-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--adobe-red) !important;
}

/* Carousel Article Cards */
.carousel-slide article {
    transition: all 0.3s ease;
}

.carousel-slide article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-slide .content-tag {
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.carousel-slide .content-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

/* Responsive carousel for mobile */
@media (max-width: 768px) {
    .carousel-slide {
        padding: 0 2px;
    }

    .carousel-slide article {
        padding: 12px;
    }

    .carousel-slide h4 {
        font-size: 12px;
    }

    .carousel-slide p {
        font-size: 10px;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--adobe-light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--adobe-red), var(--adobe-orange));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--adobe-orange), var(--adobe-red));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--white-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--grey-900);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: color-mix(in srgb, var(--primary-color) 80%, black);
}

/* Дополнительные стили для улучшения внешнего вида */
.article-content img {
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.article-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content blockquote footer {
    color: #6b7280;
    font-style: normal;
}

.comments-section {
    background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
}

/* Стили для формы комментариев */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--adobe-red) 0%, var(--adobe-orange) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}