/* Custom CSS for RIDCOD Website */

/* CSS Custom Properties (Variables) */
:root {
    --brand-green: #28a745;
    --brand-blue: #007bff;
    --brand-dark: #1a1a1a;
    --brand-light: #f8f9fa;
    --brand-success: #28a745;
    --brand-info: #17a2b8;
    --brand-warning: #ffc107;
    --brand-danger: #dc3545;
    --brand-secondary: #6c757d;
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Shadow Variables */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius Variables */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .rtl\:space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* Custom Gradients */
.gradient-bg {
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Hover Effects */
.card-hover-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.card-hover-enhanced:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    @apply bg-gradient-to-r from-brand-green to-brand-blue text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300 hover:shadow-lg hover:scale-105;
}

.btn-secondary {
    @apply bg-white text-brand-blue border-2 border-brand-blue px-6 py-3 rounded-lg font-semibold transition-all duration-300 hover:bg-brand-blue hover:text-white;
}

.btn-outline {
    @apply border-2 border-brand-green text-brand-green px-6 py-3 rounded-lg font-semibold transition-all duration-300 hover:bg-brand-green hover:text-white;
}

/* Enhanced Button Styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-enhanced::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.8s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Pulse Animation for CTA Buttons */
.btn-pulse {
    animation: pulse-scale 2s infinite;
}

@keyframes pulse-scale {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-blue focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-blue focus:border-transparent transition-all duration-300 resize-none;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-blue focus:border-transparent transition-all duration-300 bg-white;
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    transition: width 0.3s ease;
}

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

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Plugin Card Styles */
.plugin-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 hover:shadow-2xl hover:scale-105;
}

.plugin-card-image {
    @apply w-full h-48 object-cover;
}

.plugin-card-content {
    @apply p-6;
}

.plugin-card-title {
    @apply text-xl font-bold text-gray-900 mb-2;
}

.plugin-card-description {
    @apply text-gray-600 mb-4 line-clamp-3;
}

.plugin-card-meta {
    @apply flex items-center justify-between text-sm text-gray-500 mb-4;
}

.plugin-card-actions {
    @apply flex space-x-2 rtl:space-x-reverse;
}

/* Enhanced Plugin Page Styles */
.plugin-image-container img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.plugin-image-container:hover img {
    transform: scale(1.02);
}

/* Blog Card Styles */
.blog-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 hover:shadow-2xl;
}

.blog-card-image {
    @apply w-full h-48 object-cover;
}

.blog-card-content {
    @apply p-6;
}

.blog-card-title {
    @apply text-xl font-bold text-gray-900 mb-2 hover:text-brand-blue transition-colors duration-300;
}

.blog-card-excerpt {
    @apply text-gray-600 mb-4 line-clamp-3;
}

.blog-card-meta {
    @apply flex items-center justify-between text-sm text-gray-500;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(0, 123, 255, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    background-position: center;
}

/* Responsive Text */
.text-responsive {
    font-size: clamp(1rem, 4vw, 2rem);
}

.text-responsive-lg {
    font-size: clamp(1.5rem, 6vw, 3rem);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #0056b3 100%);
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #28a745, #007bff);
    border-radius: 1rem;
    padding: 2px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: calc(1rem - 2px);
    z-index: -1;
}

/* Enhanced Badge Styles */
.badge-premium {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.badge-version {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Image Overlay Effects */
.image-overlay {
    background: linear-gradient(
        45deg,
        rgba(40, 167, 69, 0.1) 0%,
        rgba(0, 123, 255, 0.1) 100%
    );
}

/* Enhanced Shadows */
.shadow-enhanced {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 4px 8px rgba(0, 0, 0, 0.06);
}

.shadow-enhanced-hover:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 
                0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Border Thickness */
.border-3 {
    border-width: 3px;
}

/* Responsive Grid */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode-auto .bg-white {
        background-color: #2d2d2d;
    }
    
    .dark-mode-auto .text-gray-900 {
        color: #ffffff;
    }
    
    .dark-mode-auto .text-gray-600 {
        color: #cccccc;
    }
}

/* 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-visible:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000000;
    }
    
    .nav-link {
        border-bottom: 1px solid transparent;
    }
    
    .nav-link:focus {
        border-bottom-color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Utilities */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error States */
.error-state {
    @apply text-red-600 bg-red-50 border border-red-200 rounded-lg p-4;
}

.success-state {
    @apply text-green-600 bg-green-50 border border-green-200 rounded-lg p-4;
}

.warning-state {
    @apply text-yellow-600 bg-yellow-50 border border-yellow-200 rounded-lg p-4;
}

.info-state {
    @apply text-blue-600 bg-blue-50 border border-blue-200 rounded-lg p-4;
}

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

/* Enhanced Focus States */
.btn-enhanced:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.btn-enhanced:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
}

/* Brand Color Classes */
.text-brand-green { color: var(--brand-green); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-dark { color: var(--brand-dark); }

.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-brand-dark { background-color: var(--brand-dark); }

.border-brand-green { border-color: var(--brand-green); }
.border-brand-blue { border-color: var(--brand-blue); }
.border-brand-dark { border-color: var(--brand-dark); }

/* Gradient Classes */
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }

/* Plugin Page Specific Styles */
.plugin-hero {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.05) 0%, 
        rgba(0, 123, 255, 0.05) 50%, 
        rgba(124, 58, 237, 0.05) 100%);
}

.plugin-title {
    background: linear-gradient(135deg, #28a745 0%, #007bff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.feature-card {
    position: relative;
    overflow: hidden;
}

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

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

.requirement-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirement-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.badge-status {
    animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    from {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

/* Enhanced Image Styling */
.plugin-image-enhanced {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.plugin-image-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(0, 123, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plugin-image-enhanced:hover::after {
    opacity: 1;
}

/* Button Animations */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

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

.btn-shimmer:hover::before {
    left: 100%;
}

/* Floating Labels */
.floating-label {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .plugin-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .plugin-title {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .requirement-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 640px) {
    .plugin-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .plugin-hero {
        padding: 3rem 0;
    }
}

/* Loading States */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .plugin-title,
    .feature-card,
    .requirement-card,
    .btn-shimmer,
    .floating-label {
        animation: none !important;
    }
    
    .plugin-title {
        background: var(--brand-green);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .plugin-image-enhanced::after {
        background: none;
    }
    
    .feature-card,
    .requirement-card {
        border: 2px solid #000;
    }
}

/* Enhanced Related Plugins Section */
.related-plugin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-plugin-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.related-plugin-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.related-plugin-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(0, 123, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-plugin-card:hover .related-plugin-image::before {
    opacity: 1;
}

.related-plugin-content {
    position: relative;
    z-index: 2;
}

.plugin-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.plugin-rating .fa-star {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

/* Enhanced Button Styles */
.btn-explore {
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    position: relative;
    overflow: hidden;
}

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

.btn-explore:hover::before {
    left: 100%;
}

.btn-explore:hover {
    background: linear-gradient(135deg, #218838 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Meta Information Cards */
.plugin-meta-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.plugin-meta-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Price Display */
.price-display {
    font-weight: 800;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Animations */
.badge-featured {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge-version {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Loading States for Images */
.plugin-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Section Divider */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #28a745, #007bff, #6f42c1);
    border-radius: 2px;
    opacity: 0.8;
}

/* Enhanced Blog and Article Styles */
.blog-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
}

.blog-hero {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.05) 0%, 
        rgba(0, 123, 255, 0.05) 50%, 
        rgba(124, 58, 237, 0.05) 100%);
}

.blog-title-gradient {
    background: linear-gradient(135deg, #28a745 0%, #007bff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradient-shift 4s ease-in-out infinite;
}

/* Article Card Enhancements */
.article-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.article-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.article-card-enhanced:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.article-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.article-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(0, 123, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-enhanced:hover .article-image-container::after {
    opacity: 1;
}

/* Enhanced Badges */
.badge-article {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.badge-article:hover::before {
    left: 100%;
}

.badge-reading-time {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #374151;
    font-weight: 600;
}

/* Article Meta Enhancements */
.article-meta-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 1.5rem;
}

.article-meta-enhanced:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn-read-article {
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-read-article:hover::before {
    left: 100%;
}

.btn-read-article:hover {
    background: linear-gradient(135deg, #218838 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

/* Section Dividers */
.section-divider-enhanced {
    height: 4px;
    background: linear-gradient(90deg, #28a745, #007bff, #6f42c1, #fd7e14);
    border-radius: 2px;
    opacity: 0.8;
    background-size: 300% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Loading Animations */
.article-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-card-enhanced:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 768px) {
    .article-card-enhanced {
        margin-bottom: 2rem;
    }
    
    .article-card-enhanced:hover {
        transform: translateY(-6px);
    }
    
    .blog-title-gradient {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .blog-title-gradient {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .article-card-enhanced:hover {
        transform: translateY(-4px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blog-title-gradient,
    .article-card-enhanced,
    .btn-read-article,
    .section-divider-enhanced,
    .article-loading {
        animation: none !important;
    }
    
    .article-card-enhanced:hover {
        transform: none;
    }
    
    .blog-title-gradient {
        background: var(--brand-green);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .article-card-enhanced {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .article-meta-enhanced {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
}
