/* External CSS file for MyActivityTracker website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 1rem;
}

/* Legacy nav class for backward compatibility */
nav:not(.header-nav) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    color: white;
}

.hero-app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background: white;
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
/* Force show mobile menu button on mobile screens */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        position: relative !important;
        z-index: 1001 !important;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 1000;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Force nav to be relative to ensure absolute positioning works */
    nav {
        position: relative;
    }
}

/* Also force show on smaller screens */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* App Preview Section */
.app-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 0;
    text-align: center;
}

.app-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.app-preview p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-mockup {
    max-width: 300px;
    margin: 0 auto;
    background: #333;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mockup-screen {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-header {
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.mockup-item {
    height: 40px;
    background: #ecf0f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

.mockup-button {
    height: 50px;
    background: #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Download Section */
.download {
    background: #2c3e50;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.download-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Footer */
footer {
    background: #34495e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #445566;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design - Additional */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.language-selector-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.language-selector-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

/* JavaScript-controlled flag display */
.language-flag {
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 1.2rem;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Emoji support - use system fonts */
.language-flag.emoji-support {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne", "Twemoji Mozilla", sans-serif;
}

/* No emoji support - use colored circles */
.language-flag.no-emoji.flag-us { color: #B22234 !important; }
.language-flag.no-emoji.flag-cz { color: #d7141a !important; }
.language-flag.no-emoji.flag-de { color: #666666 !important; }
.language-flag.no-emoji.flag-gb { color: #012169 !important; }
.language-flag.no-emoji.flag-es { color: #c60b1e !important; }
.language-flag.no-emoji.flag-mx { color: #006847 !important; }
.language-flag.no-emoji.flag-fr { color: #0055a4 !important; }
.language-flag.no-emoji.flag-ca { color: #ff0000 !important; }
.language-flag.no-emoji.flag-it { color: #009246 !important; }
.language-flag.no-emoji.flag-jp { color: #bc002d !important; }
.language-flag.no-emoji.flag-kr { color: #c60c30 !important; }
.language-flag.no-emoji.flag-pl { color: #dc143c !important; }
.language-flag.no-emoji.flag-br { color: #009739 !important; }
.language-flag.no-emoji.flag-ru { color: #d52b1e !important; }
.language-flag.no-emoji.flag-sk { color: #0b4ea2 !important; }
.language-flag.no-emoji.flag-ua { color: #005bbb !important; }
.language-flag.no-emoji.flag-cn { color: #de2910 !important; }

.language-name {
    display: none;
}

.dropdown-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
}

.language-selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.language-selector-dropdown li {
    margin: 0;
}

.language-selector-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.language-selector-dropdown a:hover {
    background: rgba(52, 152, 219, 0.1);
}

.language-selector-dropdown a.active {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
    font-weight: 600;
}

.language-selector-dropdown .language-flag {
    font-size: 1.2rem;
    width: auto;
    height: auto;
    min-width: 1.2rem;
}

.language-selector-dropdown .language-name {
    display: block;
}

/* Responsive Design for Language Selector */
@media (min-width: 769px) {
    .language-selector-toggle .language-name {
        display: inline;
    }
}

@media (max-width: 768px) {
    .language-selector {
        margin-right: 0.5rem;
    }
    
    .language-selector-toggle {
        padding: 0.5rem 0.75rem;
    }
    
    .language-selector-dropdown {
        right: -10px;
    }
}