/*
Theme Name: VipMac.Net
Theme URI: https://vipmac.net/
Description: Theme for VipMac.Net website
Author: VipMac.Net
Author URI: https://vipmac.net/
Version: 1.0.0
*/

:root {
    --retro-brown: #724F36;
    --retro-cream: #F8F3E9;
    --retro-dark: #2C241E;
    --retro-border: #D9CFC1;
    --retro-light-brown: #A67C52;
    --retro-dark-blue: #1E3A4A;
    --retro-gold: #C9A962;
    --light-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-muted: #888888;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--retro-cream);
    color: var(--retro-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--retro-dark);
    font-weight: 600;
}

a {
    color: var(--retro-brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--retro-light-brown);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--retro-brown);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--retro-light-brown);
    color: white;
}

.site-header {
    background-color: var(--retro-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--retro-cream);
    text-decoration: none;
}

.logo span {
    color: var(--retro-gold);
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--retro-border);
    border-radius: 25px;
    background-color: rgba(255,255,255,0.1);
    color: var(--retro-cream);
    font-size: 14px;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--retro-cream);
    cursor: pointer;
}

.header-menu {
    display: flex;
    gap: 20px;
}

.header-menu a {
    color: var(--retro-cream);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-menu a:hover {
    color: var(--retro-gold);
}

.hero-section {
    background: linear-gradient(135deg, var(--retro-dark) 0%, var(--retro-dark-blue) 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    color: var(--retro-cream);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--retro-dark);
    border-bottom: 2px solid var(--retro-border);
    padding-bottom: 10px;
}

.archive-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--retro-brown);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--retro-border);
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 10px;
}

.sidebar-section a {
    color: var(--retro-dark);
    text-decoration: none;
    font-size: 14px;
}

.sidebar-section a:hover {
    color: var(--retro-brown);
    text-decoration: underline;
}

.archive-content {
    flex: 1;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.book-card a {
    text-decoration: none;
}

.book-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--retro-dark);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-title:hover {
    color: var(--retro-brown);
}

.book-author {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.book-year {
    font-size: 12px;
    color: var(--retro-gold);
    font-weight: 500;
}

.site-footer {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--retro-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--retro-gold);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
}

.footer-section a:hover {
    color: #2c241e;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--retro-border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin: 0;
    }
    
    .header-menu {
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .archive-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .book-cover {
        height: 220px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ai-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ai-tools-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.ai-tools-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.ai-tools-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

.ai-category {
    margin-bottom: 40px;
}

.ai-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    color: #2d3748;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ai-tool-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.ai-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ai-tool-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.ai-tool-desc {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ai-tool-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ai-tool-link:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.05);
}

.ai-badges {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ai-badge-hot {
    background-color: #fed7d7;
    color: #c53030;
}

.ai-badge-new {
    background-color: #c6f6d5;
    color: #2f855a;
}

.ai-badge-recommend {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.ai-badge-free {
    background-color: #fef5e7;
    color: #d69e2e;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-grid.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.video-card.small-card {
    text-align: center;
}

.video-card a {
    text-decoration: none;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-card.small-card .video-thumbnail-container {
    height: 100px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.play-overlay.small {
    width: 35px;
    height: 35px;
}

.play-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.play-overlay.small i {
    font-size: 14px;
}

.video-card:hover .play-overlay {
    background-color: rgba(114, 79, 54, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--retro-dark);
    margin-bottom: 8px;
}

.video-card.small-card .video-title {
    font-size: 13px;
    margin-bottom: 0;
}

.video-title a {
    color: var(--retro-dark);
}

.video-title a:hover {
    color: var(--retro-brown);
}

.video-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.video-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-category-tag {
    padding: 4px 10px;
    background-color: var(--retro-gold);
    color: var(--retro-dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.video-category-tag:hover {
    background-color: var(--retro-light-brown);
    color: white;
}

.single-video {
    max-width: 800px;
    margin: 0 auto;
}

.single-video .video-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--retro-border);
}

.video-date {
    font-size: 14px;
    color: var(--text-muted);
}

.video-player {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.video-player iframe {
    display: block;
}

.video-not-found {
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.video-not-found i {
    font-size: 60px;
    margin-bottom: 15px;
}

.video-content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.video-content p {
    margin-bottom: 15px;
}

.video-thumbnail-section {
    margin-bottom: 30px;
}

.video-thumbnail-section h3 {
    margin-bottom: 15px;
}

.related-videos {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--retro-border);
}

.related-videos h3 {
    margin-bottom: 20px;
}

.header-menu .dropdown {
    position: relative;
    display: inline-block;
}

.header-menu .dropdown-trigger {
    position: relative;
    padding-right: 20px;
}

.header-menu .dropdown-trigger::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.header-menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--retro-dark);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.header-menu .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.header-menu .dropdown-content a:hover {
    background-color: var(--retro-brown);
    color: white;
}

.header-menu .dropdown:hover .dropdown-content {
    display: block;
}

.header-menu .dropdown:hover .dropdown-trigger {
    color: var(--retro-gold);
}