/* Common Styles for All Templates */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: #82005C;
    background-blend-mode: multiply;
    padding: 0.75rem 1rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo {
    width: 100px;
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-login {
    background: linear-gradient(91.24deg, #EA4459 -14.3%, #D90924 111.2%);
    border: 2px solid transparent;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-signup {
    background: #C9004A;
    border: 2px solid transparent;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.more-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 0.9rem;
}

.more-link:hover {
    color: #ff4081;
}

/* Social Icons */
.social-section {
    padding: 2rem 1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Footer Navigation */
.footer-nav {
    text-align: center;
    padding: 0 1rem 1.5rem;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #e91e63;
}

/* Copyright */
.copyright {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    color: #666666;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
    border: none;
}

.float-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.float-line {
    background: #00B900;
}

.float-btn img {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tablet Responsive (768px and up) */
@media (min-width: 768px) {
    body {
        max-width: 1200px;
    }

    /* Header improvements */
    .header {
        padding: 1rem 2rem;
        min-height: 70px;
    }

    .header-logo {
        gap: 0.75rem;
    }

    .logo {
        width: 180px;
    }

    .app-logo {
        width: 45px;
        height: 45px;
    }

    .header-buttons {
        gap: 0.75rem;
    }

    .btn-login, .btn-signup {
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .hamburger {
        display: none;
    }

    /* Social section */
    .social-section {
        padding: 3rem 2rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icon img {
        width: 30px;
        height: 30px;
    }

    /* Footer */
    .footer-nav {
        padding: 0 2rem 2rem;
    }

    .copyright {
        padding: 2rem;
    }

    /* Floating buttons */
    .floating-buttons {
        right: 2rem;
    }
}

/* Desktop Responsive (1024px and up) */
@media (min-width: 1024px) {
    /* Header - more spacious */
    .header {
        padding: 1.25rem 3rem;
        min-height: 80px;
    }

    .header-logo {
        gap: 1rem;
    }

    .logo {
        width: 220px;
    }

    .app-logo {
        width: 55px;
        height: 55px;
    }

    .header-buttons {
        gap: 1rem;
    }

    .btn-login, .btn-signup {
        padding: 14px 32px;
        font-size: 1.05rem;
        border-radius: 14px;
        transition: all 0.3s ease;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(234, 68, 89, 0.4);
    }

    .btn-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(201, 0, 74, 0.4);
    }

    /* Social section */
    .social-section {
        padding: 3.5rem 3rem;
    }

    .social-icons {
        gap: 2rem;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    /* Footer */
    .footer-nav {
        padding: 0 3rem 2.5rem;
    }

    .footer-nav a {
        display: inline-block;
        padding: 0.5rem 1rem;
    }

    .copyright {
        padding: 2.5rem 3rem;
    }

    /* Floating buttons - position for larger screens */
    .floating-buttons {
        right: calc((100vw - 1200px) / 2 + 2rem);
    }
}

/* Large Desktop (1400px and up) - keep content centered */
@media (min-width: 1400px) {
    .floating-buttons {
        right: calc((100vw - 1200px) / 2 + 2rem);
    }
}
