/* LTLFlow Updates - Modern Professional Design */
/* Color Scheme: CBB26A (Gold), 000000 (Black), FFFFFF (White) */

:root {
    --primary-gold: #CBB26A;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-white) 100%);
    color: var(--gray-900);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-800) 100%);
    color: var(--primary-white);
    padding: 32px 0;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23CBB26A" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23CBB26A" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23CBB26A" opacity="0.05"/><circle cx="20" cy="80" r="0.5" fill="%23CBB26A" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title-section {
    flex: 1;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray-300);
    font-weight: 400;
    opacity: 0.9;
}

/* Main Content */
.main {
    flex: 1;
    padding: 48px 0;
}

.content-wrapper {
    position: relative;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 48px 24px;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.spinner-modern {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner-modern::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.loading-content p {
    font-size: 1rem;
    color: var(--gray-600);
}

/* Error State */
.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 48px 24px;
}

.error-content {
    text-align: center;
    max-width: 400px;
    padding: 32px;
    background: var(--primary-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: grayscale(100%);
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.error-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4a574 100%);
    color: var(--primary-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Updates Section */
.updates-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.updates-count {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4a574 100%);
    color: var(--primary-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Updates Grid */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Update Card */
.update-card {
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, #d4a574 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.update-card:hover::before {
    transform: scaleX(1);
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.version-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gray-700) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.release-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
}

.description {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
}

/* Markdown-style formatting for descriptions */
.description h1,
.description h2,
.description h3,
.description h4,
.description h5,
.description h6 {
    font-weight: 600;
    color: var(--gray-900);
    margin: 16px 0 8px 0;
    line-height: 1.3;
}

.description h1 { font-size: 1.5rem; }
.description h2 { font-size: 1.375rem; }
.description h3 { font-size: 1.25rem; }
.description h4 { font-size: 1.125rem; }
.description h5 { font-size: 1rem; }
.description h6 { font-size: 0.875rem; }

.description p {
    margin: 12px 0;
    color: var(--gray-700);
}

.description ul, .description ol {
    margin: 12px 0;
    padding-left: 24px;
}

.description li {
    margin: 6px 0;
    color: var(--gray-700);
}

.description code {
    background-color: var(--gray-100);
    color: var(--gray-800);
    padding: 3px 6px;
    border-radius: var(--border-radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
}

.description blockquote {
    border-left: 4px solid var(--primary-gold);
    padding-left: 20px;
    margin: 16px 0;
    color: var(--gray-600);
    font-style: italic;
    background: var(--gray-50);
    padding: 16px 20px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.description a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.description a:hover {
    border-bottom-color: var(--primary-gold);
}

/* No Description Message */
.no-description {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--border-radius-md);
    border: 2px dashed var(--gray-300);
    color: var(--gray-500);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 24px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        height: 56px;
    }

    .main {
        padding: 32px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .version-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .title {
        font-size: 2rem;
    }

    .update-card {
        padding: 24px;
    }

    .version-number {
        font-size: 1.375rem;
    }

    .loading-content, .error-content {
        padding: 24px;
    }
}