/* ===================================
   Release Log Template Styles
   Modern, Clean, White Theme
   =================================== */

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a2e;
    line-height: 1.7;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8ec;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
}

/* Releases Container */
.releases {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Release Card */
.release-card {
    background: #ffffff;
    border: 1px solid #e8e8ec;
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.release-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Release Header */
.release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

/* Version Tags Container */
.version-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Release Type Badge (Optional) */
.release-type {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Hotfix - Red/Orange */
.release-type.hotfix {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Feature - Green */
.release-type.feature {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid #86efac;
}

/* Maintenance - Blue */
.release-type.maintenance {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* Security - Purple */
.release-type.security {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
    border: 1px solid #c4b5fd;
}

/* Beta - Yellow/Amber */
.release-type.beta {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fcd34d;
}

/* Release Date */
.release-date {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Changelog Content */
.changelog {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.changelog p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
}

.changelog p:first-child {
    color: #374151;
    font-weight: 500;
}

/* List Styles in Changelog */
.changelog ul,
.changelog ol {
    margin-left: 24px;
    padding-left: 0;
}

.changelog ul {
    list-style-type: disc;
}

.changelog ol {
    list-style-type: decimal;
}

.changelog li {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 8px;
}

.changelog ul ul,
.changelog ol ol,
.changelog ul ol,
.changelog ol ul {
    margin-top: 8px;
    margin-left: 20px;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading p {
    color: #6b7280;
    font-size: 0.9rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8ec;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.error-message p {
    margin-bottom: 16px;
}

.retry-btn {
    padding: 10px 24px;
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: #2d2d44;
}

/* No Releases State */
.no-releases {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e8e8ec;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    flex-shrink: 0;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e8e8ec;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 40px 16px;
    }

    .header {
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .release-card {
        padding: 24px;
        border-radius: 12px;
    }

    .release-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .releases {
        gap: 24px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer {
        margin-top: 60px;
    }
}

/* Print Styles */
@media print {
    .release-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .release-card:hover {
        transform: none;
        box-shadow: none;
    }

    .pagination {
        display: none;
    }
}