/* Modern Release Notes Page Styles */

/* Modern Typography System */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Modern Hero Section */
.release-notes-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Animated gradient mesh background */
.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.gradient-mesh {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(126, 97, 255, 0.2) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-20px, -20px) rotate(1deg) scale(1.05); }
    50% { transform: translate(20px, -10px) rotate(-1deg) scale(1.02); }
    75% { transform: translate(-10px, 20px) rotate(0.5deg) scale(1.03); }
}

/* Container styling for hero section */
.release-notes-hero .container {
    max-width: 1280px;
    margin: 0 auto;
    z-index: 1;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.release-notes-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #00B8D4 20%, #0066CC 40%, #7B61FF 60%, #00B8D4 80%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 8s ease infinite;
}

@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Modern Product Tabs */
.product-tabs-modern {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-tab-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.product-tab-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 184, 212, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-tab-modern:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-tab-modern:hover::before {
    opacity: 1;
}

.product-tab-modern.active {
    background: linear-gradient(135deg, #0066CC 0%, #00B8D4 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
} 

.tab-label {
    position: relative;
    z-index: 1;
}

.tab-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #00B8D4;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 184, 212, 0.3);
    z-index: 10;
}

/* Main Content Section */
.release-notes-content-section {
    padding: 4rem 0 6rem;
    background: #f8f9fa;
}

html.dark-mode-enabled .release-notes-content-section {
    background: #121212;
}

/* Modern Loading State */
.loading-state-modern {
    text-align: center;
    padding: 6rem 2rem;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #0066CC;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #00B8D4;
    animation-delay: 0.2s;
    animation-duration: 1.2s;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #7B61FF;
    animation-delay: 0.4s;
    animation-duration: 0.9s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state-modern p {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: #6b7280;
}

/* Modern Error State */
.error-state-modern {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: #dc3545;
}

.error-state-modern h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.error-state-modern p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0066CC 0%, #004D99 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Release Notes Wrapper */
.release-notes-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Modern Release Card */
.release-card {
    background: white;
    border-radius: 5px 40px 5px 40px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

html.dark-mode-enabled .release-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.release-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066CC 0%, #00B8D4 50%, #7B61FF 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.release-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: 40px;
}

.release-card:hover::before {
    transform: scaleX(1);
}

/* Release Header */
.release-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode-enabled .release-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.release-title h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.release-version {
    display: inline-block;
    background: linear-gradient(135deg, #0066CC 0%, #00B8D4 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.release-date {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.release-date::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Release Type Badges - Modern */
.release-type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.release-type.stable {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.release-type.beta {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.release-type.alpha {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Release Content - Enhanced Markdown styling */
.release-body {
    color: #374151;
    line-height: 1.8;
    font-size: 1.0625rem;
}

html.dark-mode-enabled .release-body {
    color: #d1d5db;
}

.release-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1.5rem;
}

.release-body h3::before {
    content: '#';
    position: absolute;
    left: 0;
    color: #0066CC;
    font-weight: 300;
}

.release-body h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.release-body ul,
.release-body ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.release-body li {
    margin-bottom: 0.625rem;
    position: relative;
}

.release-body ul li::before {
    content: '▸';
    position: absolute;
    left: -1.25rem;
    color: #0066CC;
    font-weight: 600;
}

.release-body code {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: #e01e5a;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode-enabled .release-body code {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ff79c6;
}

.release-body pre {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.release-body pre code {
    background: transparent;
    border: none;
    color: #e6e6e6;
    padding: 0;
}

.release-body blockquote {
    border-left: 4px solid #0066CC;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Enhanced links */
.release-body a {
    color: #0066CC;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.release-body a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0066CC;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.release-body a:hover {
    color: #004D99;
}

.release-body a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Empty State - Modern */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state p {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
}

/* Modern Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode-enabled .pagination-controls {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode-enabled .pagination-button {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

.pagination-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #0066CC 0%, #00B8D4 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-button i {
    font-size: 0.875rem;
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark-mode-enabled .pagination-info {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 992px) {
    .release-notes-hero h1 {
        font-size: 3.5rem;
    }
    
    .product-tabs-modern {
        flex-direction: column;
        gap: 1rem;
        max-width: 350px;
        margin: 3rem auto 0;
    }
    
    .product-tab-modern {
        width: 100%;
        justify-content: center;
    }
    
    .tab-badge {
        position: static;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .release-notes-hero {
        padding: 8rem 0 3rem;
    }
    
    .release-notes-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .release-card {
        padding: 2rem 1.5rem;
    }
    
    .release-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .release-title h2 {
        font-size: 1.5rem;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        order: -1;
    }
}

@media (max-width: 480px) {
    .release-notes-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .product-tab-modern {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .release-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .release-body {
        font-size: 1rem;
    }
    
    .pagination-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Animation for page transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.release-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.release-card:nth-child(1) { animation-delay: 0.1s; }
.release-card:nth-child(2) { animation-delay: 0.2s; }
.release-card:nth-child(3) { animation-delay: 0.3s; }
.release-card:nth-child(4) { animation-delay: 0.4s; }
.release-card:nth-child(5) { animation-delay: 0.5s; }

/* Smooth transitions for tab switching */
.release-notes-wrapper {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.release-notes-wrapper.switching {
    opacity: 0;
}

/* Enhanced hover effects */
.release-version:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.release-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .release-notes-hero,
    .pagination-controls,
    .back-to-top {
        display: none;
    }
    
    .release-notes-content-section {
        padding: 0;
    }
    
    .release-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}