/* 
 * Stealth Tanks Website Styles
 * 
 * This stylesheet contains all the styling for the Stealth Tanks Minecraft content website.
 * It uses CSS variables for consistent theming and includes responsive design for various screen sizes.
 * 
 * Future modifications:
 * - Add dark/light theme support
 * - Implement CSS Grid for more complex layouts
 * - Add animations for interactive elements
 * - Consider using CSS custom properties for more dynamic theming
 */

/* Import Minecraft font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* 
 * Fonts
 * Import Minecraft font for titles
 */
@font-face {
    font-family: 'Minecraft';
    src: url('fonts/1_Minecraft-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 
 * Root Variables
 * These variables define the core color scheme and can be easily modified for theme changes.
 * Consider adding more variables for:
 * - Border radiuses
 * - Spacing units
 * - Font sizes
 * - Transition timings
 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #4CAF50;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --card-hover: #333333;
    --minecraft-font: 'Minecraft', 'Inter', sans-serif;
}

/* 
 * Reset and Base Styles
 * These styles provide a consistent base for all elements.
 * Consider adding:
 * - Custom scrollbar styles
 * - Selection text styles
 * - Focus states for accessibility
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--minecraft-font);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-left: 0;
}

.nav-links a i {
    font-size: 1.1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    overflow: visible;
}

/* 
 * Hero Section
 * Styles for the main hero/banner section.
 * Consider adding:
 * - Background image support
 * - Parallax effects
 * - Animated text
 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Minecraft', 'Press Start 2P', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* 
 * Section Navigation
 * Styles for the category navigation buttons.
 * Future enhancements:
 * - Add active state indicators
 * - Implement smooth scrolling
 * - Add animation on hover
 */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 160px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn:hover, .nav-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 
 * Mod Cards
 * Styles for the mod listing cards.
 * Future improvements:
 * - Add card flip animations
 * - Implement lazy loading for images
 * - Add rating system
 * - Add favorite/bookmark functionality
 */
.mod-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
}

.mod-card {
    display: flex;
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 1rem;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
}

.mod-card.highlighted {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
}

.mod-card:hover {
    background-color: var(--card-hover);
}

.mod-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.mod-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mod-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mod-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mod-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.mod-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.release-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-icons {
    display: flex;
    gap: 0.5rem;
}

.platform-icons i {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.platform-icons i:hover {
    color: var(--accent-color);
}

.mod-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mod-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mod-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 120px;
    position: relative;
}

.copy-link-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 1;
}

.copy-link-btn:hover {
    opacity: 1;
    background-color: rgba(76, 175, 80, 0.1);
}

.copy-link-btn.copied {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
}

.copy-link-btn i {
    font-size: 14px;
}

.price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.mcpedl-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.mcpedl-link:hover {
    color: #45a049;
}

/* 
 * Download Options
 * Styles for the download dropdown and options.
 * Consider adding:
 * - Download progress indicators
 * - File size information
 * - Version selection
 * - Platform-specific options
 */
.download-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
}

.download-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.download-dropdown:hover {
    z-index: 1000;
}

.download-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background-color: #45a049;
}

.download-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    min-width: 200px;
    width: max-content;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.download-options::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.download-dropdown:hover .download-options,
.download-options:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    z-index: 1001;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-option:hover {
    background-color: var(--card-hover);
    transform: translateX(2px);
}

.download-option:active {
    transform: translateX(4px);
}

/* Add loading state styles */
.download-option.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Add focus styles for keyboard navigation */
.download-option:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

/* Add mobile touch-friendly styles */
@media (max-width: 768px) {
    .download-option {
        padding: 1rem 1.25rem;
    }
}

/* 
 * Footer
 * Styles for the website footer.
 * Future additions:
 * - Newsletter signup
 * - Social media links
 * - Site map
 * - Language selector
 */
footer {
    background-color: var(--secondary-color);
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* 
 * Responsive Design
 * Media queries for different screen sizes.
 * Consider adding:
 * - More breakpoints for larger screens
 * - Print styles
 * - High-DPI screen optimizations
 * - Reduced motion preferences
 */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .mod-card {
        flex-direction: column;
        padding: 1rem;
    }
    
    .mod-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .mod-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .download-dropdown {
        width: auto;
    }
    
    .download-btn {
        width: auto;
    }
    
    .download-options {
        right: 0;
        left: auto;
    }
    
    .mod-card:last-child .download-options {
        bottom: calc(100% + 0.5rem);
        top: auto;
    }
    
    .section-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }

    .nav-btn i {
        font-size: 1.3rem;
    }

    .category-section {
        padding: 0 1rem;
    }

    .category-section h2 {
        font-size: 1.5rem;
    }

    .mod-header h3 {
        font-size: 1.1rem;
    }

    .mod-description {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-nav {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .mod-card {
        padding: 0.75rem;
    }

    .mod-thumbnail {
        height: 180px;
    }

    .mod-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mod-meta {
        align-items: flex-start;
    }

    .platform-icons {
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .download-options {
        right: 0;
        left: auto;
    }

    .download-dropdown:hover .download-options,
    .download-options:hover {
        display: block;
    }

    .download-option {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--text-color);
        text-decoration: none;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 100%;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .mod-thumbnail {
        height: 150px;
    }

    .mod-header h3 {
        font-size: 1rem;
    }

    .mod-description {
        font-size: 0.85rem;
    }

    .price {
        font-size: 1rem;
    }

    .download-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* 
 * Category Sections
 * Styles for different content categories.
 * Future improvements:
 * - Add category-specific color schemes
 * - Implement filtering system
 * - Add sorting options
 */
.category-section {
    margin-bottom: 3rem;
    overflow: visible;
}

.category-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* 
 * Team Members
 * Styles for team member cards.
 * Consider adding:
 * - Social media links
 * - Role badges
 * - Contact information
 */
.team-members {
    margin-top: 1.5rem;
}

.team-member {
    margin-bottom: 1rem;
}

.team-member h5 {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 
 * Disclaimer
 * Styles for legal and informational text.
 * Future additions:
 * - Cookie consent
 * - Privacy policy link
 * - Terms of service
 */
.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* 
    STYLING FOR NEW PACKS AND TAGS:
    
    Mod Card Structure:
    - Each mod card uses the .mod-card class
    - Thumbnails should be 300x300px for consistency
    - Download options use .download-options class
    - Mod info uses .mod-info class
    
    Tag Styling:
    - Tags use the .tag class
    - Version tags: Use format "1.XX+" or specific version
    - Platform tags: Windows, iOS, Android, Xbox, PlayStation
    - Content type: Texture Pack, Skin Pack, Map, Add-on
    - Additional tags: Use lowercase, hyphenated format
    
    Section Organization:
    - Texture packs: #texture-packs
    - Skin packs: #skin-packs
    - Maps: #maps
    - Add-ons: #add-ons
    
    Responsive Design:
    - Cards stack on mobile (max-width: 768px)
    - Tags wrap on smaller screens
    - Download options stack vertically on mobile
*/

/* Update title styles to use Minecraft font */
h1, h2, h3, h4, h5 {
    font-family: var(--minecraft-font);
    letter-spacing: 1px;
} 