/**
 * Version Categories Page Styles
 *
 * Note: This file ignores -copy*.css files
 */

/* CSS Variables */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #888;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border: #e9ecef;
    --border-light: #f8f9fa;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --max-width: 1200px;
}

.woff-version-categories-container {
    
    min-height: 100vh;
    padding: 20px;
}

.woff-version-header {
    text-align: center;
    margin-bottom: 60px;
}

.woff-version-header h1 {
    
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.woff-version-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.woff-version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.woff-version-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.woff-version-card-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.woff-version-details {
    flex: 1;
    text-align: left;
}

.woff-version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.woff-v5-card::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.woff-v6-card::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.woff-version-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.woff-version-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.woff-v5-card .woff-version-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.woff-version-card h2 {
    
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.woff-version-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.woff-version-stats {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.woff-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woff-stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.woff-stat-label {
    font-size: 1rem;
    color: #888;
}

.woff-version-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woff-v5-card .woff-version-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.woff-v6-card .woff-version-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.woff-version-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

.woff-recent-updates {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.woff-recent-updates h2 {
    
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.woff-update-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woff-update-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woff-update-item:last-child {
    border-bottom: none;
}

.woff-update-icon {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    flex-shrink: 0;
}

.woff-update-text {
    flex: 1;
    color: #555;
}

.woff-update-text a {
    color: #555;
    text-decoration: none;
}

.woff-update-text a:hover {
    color: #667eea;
}

.woff-update-date {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woff-version-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .woff-version-card {
        padding: 30px 20px;
    }

    .woff-version-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .woff-version-details {
        text-align: center;
    }

    .woff-version-icon {
        margin: 0;
    }

    .woff-version-stats {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .woff-version-header h1 {
        font-size: 1.8rem;
    }

    .woff-version-card {
        padding: 25px 15px;
    }

    .woff-version-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .woff-version-stats {
        flex-direction: row;
        gap: 15px;
    }

    .woff-stat-number {
        font-size: 1.2rem;
    }

    .woff-stat-label {
        font-size: 0.85rem;
    }

    .woff-version-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Layout fixes to remove white space - only apply to version categories page */
body.page-template-version-categories {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Adjust container to remove excess white space */
.woff-version-categories-container {
    padding: 2rem; /* Reduced from 20px */
    min-height: calc(100vh - 150px); /* Account for header and footer */
    margin-bottom: 0; /* Ensure no bottom margin */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}

/* Additional vertical centering fix */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-template-version-categories main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove bottom margin from grid */
.woff-version-grid {
    margin-bottom: 20px; /* Reduced from 60px */
}

/* Ensure footer sits directly below content */
.site-footer {
    margin: 0;
    padding: 0;
    position: relative;
}

.site-info {
    margin: 0;
    padding: 15px 0; /* Reduced padding */
}

/* Remove any potential white space after footer */
#page {
    margin: 0;
    padding: 0;
}

/* Additional fixes to eliminate white space after footer - only for version categories page */
body.page-template-version-categories html {
    height: 100%;
}

body.page-template-version-categories {
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.page-template-version-categories #page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Ensure footer is at the bottom with no white space - only for version categories page */
body.page-template-version-categories .site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Remove any default margins or padding that might cause white space */
* {
    box-sizing: border-box;
}

/* Specific fix for any remaining white space */
.site-footer-wrapper {
    margin: 0;
    padding: 0;
}

/* Remove any potential space from WordPress elements */
.wp-block-group, .wp-block-cover, .wp-block-container {
    margin-bottom: 0;
}

/* Additional fixes for mobile devices */
@media (max-width: 768px) {
    .woff-version-categories-container {
        padding: 5px; /* Further reduced for mobile */
        justify-content: center; /* Ensure vertical centering on mobile */
    }
    
    .woff-version-grid {
        margin-bottom: 10px; /* Further reduced for mobile */
    }
}

@media (max-width: 480px) {
    .woff-version-categories-container {
        padding: 0; /* No padding for very small screens */
        justify-content: center; /* Ensure vertical centering on small screens */
    }
    
    .woff-version-grid {
        margin-bottom: 5px; /* Minimal margin for very small screens */
    }
}