/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #3e2e00;
    background-color: #F8C206;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main container */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 2rem 1rem;
}

/* Logo section - matches Flutter app layout */
.logo-section {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.logo {
    height: 33vh;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.app-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3e2e00;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.3rem;
    color: #594400;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Download section - matches Flutter CREATE/JOIN buttons */
.download-section {
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.download-btn {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.download-btn img {
    height: 60px;
    width: auto;
    display: block;
}

/* Features section */
.features-section {
    margin-top: 2rem;
}

.description {
    font-size: 1.2rem;
    color: #594400;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* Footer - matches Flutter HomeFooter widget */
.footer {
    background: rgba(248, 194, 6, 0.95);
    padding: 1.5rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(62, 46, 0, 0.7);
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.footer-links a:hover {
    color: #3e2e00;
}

/* Separators in footer - matching Flutter design */
.footer-links a:not(:last-child)::after {
    content: " | ";
    color: rgba(62, 46, 0, 0.5);
    margin-left: 0.5rem;
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(62, 46, 0, 0.6);
}

/* Modal styles for imprint */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 2rem;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.imprint-content {
    color: #333;
    line-height: 1.6;
}

.imprint-content p {
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .app-name {
        font-size: 2.8rem;
    }
    
    .logo {
        height: 33vh;
        width: auto;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    
    .download-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn img {
        height: 50px;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 33vh;
        width: auto;
    }
    
    .app-name {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Loading animation for images */
.logo,
.download-btn img {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.logo {
    animation-delay: 0.2s;
}

.download-btn:first-child img {
    animation-delay: 0.4s;
}

.download-btn:last-child img {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Match the spacing from Flutter app */
@media (min-height: 600px) {
    .logo {
        margin-bottom: 2rem;
    }
    
    .logo-section {
        margin-bottom: 4rem;
    }
}