/* Main Stylesheet for EMD Site */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #004080;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.site-branding {
    display: inline-block;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #333;
}

.main-navigation {
    display: inline-block;
    float: right;
}

.menu-toggle {
    display: none;
}

.menu-container {
    display: block;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    display: block;
    padding: 5px 0;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #e65c00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background-color: #fff;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    min-width: 300px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* App Info Table */
.app-info {
    margin: 30px 0;
}

.app-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.app-info-table th,
.app-info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.app-info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 40%;
}

.app-info-table tr:last-child th,
.app-info-table tr:last-child td {
    border-bottom: none;
}

/* Author Section */
.author-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.author-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #333;
}

.author-title {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 15px;
    font-weight: 500;
}

.author-bio {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #0066cc;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.author-social a:hover {
    background-color: #004080;
}

.author-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Disclaimer */
.disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.screenshots-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.screenshots-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.screenshots-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshots-grid::-webkit-scrollbar {
    height: 8px;
}

.screenshots-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.screenshots-grid::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 10px;
}

.screenshots-grid::-webkit-scrollbar-thumb:hover {
    background: #004080;
}

.screenshot {
    flex: 0 0 auto;
    max-width: 300px;
    min-width: 200px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.screenshot img {
    max-width: 100%;
    max-height: 356px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.screenshot p {
    padding: 10px 15px;
    text-align: center;
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-item h3 {
    padding: 15px 20px;
    background-color: #f8f9fa;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.faq-item h3:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active h3:after {
    content: '-';
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

/* Header styling */
.faq-item h3 {
    transition: background-color 0.2s ease;
}

.faq-item h3:hover {
    background-color: #e9ecef;
}

.faq-item.active h3 {
    background-color: #007cba;
    color: white;
}

.faq-item.active h3:hover {
    background-color: #005a87;
}

/* App Information Section */
.app-info-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.app-info-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.app-info-section p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-info-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.app-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex: 0 0 200px;
    min-width: 180px;
}

.app-info-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.app-info-card:hover::before {
    left: 100%;
}

.app-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.app-info-card:hover .app-info-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.app-info-icon i {
    font-size: 20px;
    color: white;
}

.app-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 500;
}

.app-info-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.star-rating {
    margin-top: 5px;
    display: flex;
    justify-content: center;
}

.star-rating i {
    color: #ffd700;
    font-size: 14px;
    margin: 0 1px;
}

/* Custom scrollbar for app info grid */
.app-info-grid::-webkit-scrollbar {
    height: 6px;
}

.app-info-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.app-info-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .app-info-card {
        flex: 0 0 160px;
        min-width: 160px;
        padding: 20px 10px;
    }
    
    .app-info-section h2 {
        font-size: 1.8rem;
    }
    
    .app-info-section p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    color: #fff;
    text-align: center;
}

.download-section h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.download-section p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.download-option {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    transition: all 0.3s ease;
    color: #fff;
}

.download-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.download-option.featured {
    background-color: rgba(255, 102, 0, 0.8);
    position: relative;
}

.download-option.featured:before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6600;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.download-option h3 {
    margin-bottom: 15px;
}

.download-option p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.download-option .download-btn {
    background-color: #fff;
    color: #0066cc;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.download-option.featured .download-btn {
    color: #ff6600;
}

.version-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-navigation li {
    margin: 0 10px;
}

.footer-navigation a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-navigation a:hover {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        float: right;
    }
    
    .menu-container {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu-container.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        padding: 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-stats {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .app-info-table th,
    .app-info-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}
