@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

:root {
    --primary-color: #b71c1c;
    --primary-dark: #8e1515;
    --text-color: #333;
    --bg-color: #fff;
    --gray-bg: #f8f9fa;
    --border: #e5e7eb;
    --text-muted: #4b5563;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: var(--gray-bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.top-brand {
    font-weight: 500;
}

header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.top-auth-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 50;
    margin-left: 0;
}
.am-spinner {
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: am-spin 1s linear infinite;
    display: none;
    margin-left: auto;
}
@keyframes am-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.aw-login-prompt { display: none; margin-left: auto; }
.btn-aw-login {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    outline: none;
}
.btn-aw-login:hover {
    background: var(--gray-bg);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.aw-user-profile {
    display: none;
    position: relative;
    margin-left: auto;
    cursor: pointer;
    align-items: center;
}
.aw-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: 0.2s;
    display: block;
}
.aw-avatar:hover { box-shadow: 0 0 0 2px var(--primary-color); }
.aw-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: 220px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.aw-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.aw-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.aw-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-bottom: 0.5rem;
}
.btn-aw-logout {
    background: var(--gray-bg);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    border: none;
    gap: 0.4rem;
}
.btn-aw-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}
.edit-avatar-badge.badge-crown {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: #fbbf24;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.text-white {
    color: white !important;
    border-color: white !important;
}

.text-white:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}


.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0) scale(1.02);
}


.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    flex: 1 1 300px;
    max-width: calc(33.333% - 20px);
    background: var(--gray-bg);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(183, 28, 28, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(183, 28, 28, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .feature-card {
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 650px) {
    .feature-card {
        max-width: 100%;
    }
}

.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d32f2f 100%);
    color: white;
    text-align: center;
    scroll-margin-top: 80px;
}

.download-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.download-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.download-buttons .btn-primary:hover {
    background-color: #f0f0f0;
    color: var(--primary-dark);
}

.install-guide {
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
    background: rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
}


.changelog-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.version-tag {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: rgba(183, 28, 28, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.release-date {
    color: #888;
    font-size: 0.9rem;
}

.changelog-content p {
    margin: 0;
    color: #444;
}

.changelog-action {
    text-align: right;
    padding-top: 10px;
}

.download-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}


footer {
    padding: 30px 0;
    font-size: 13px;
    color: #888;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-bottom b {
    color: #555;
    font-weight: bold;
}

.footer-links-inline {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.footer-links-inline a {
    color: #b71c1c;
    text-decoration: none;
    margin: 0 2px;
}

.footer-links-inline a:hover {
    text-decoration: underline;
}



.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #eee;
}

.gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-caption {
    margin-top: 15px;
    font-weight: 500;
    color: #666;
    font-size: 1rem;
}

@media (max-width: 950px) {
    .top-bar-container {
        justify-content: center;
        gap: 8px;
    }

    .header-container {
        height: auto;
        min-height: 60px;
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo {
        font-size: 1rem;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .btn-primary {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        margin-top: 40px;
        width: 100%;
    }

    .footer-links-inline {
        flex-wrap: wrap;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoom 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}
.auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.auth-modal {
    background: var(--bg-color);
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 2.5rem 2rem;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease;
}
.auth-overlay.active .auth-modal {
    transform: translateY(0);
}
.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    font-size: 1.2rem;
}
.auth-close:hover {
    background: #e5e7eb;
    color: var(--text-color);
}
.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.auth-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.btn-auth-social {
    background: var(--gray-bg);
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
    outline: none;
    border: none;
}
.btn-auth-social:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 1.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.auth-divider::before { margin-right: 1rem; }
.auth-divider::after { margin-left: 1rem; }
.auth-form-group {
    margin-bottom: 1rem;
    position: relative;
}
.auth-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--gray-bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: 0.2s;
    outline: none;
}
.auth-input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183,28,28,0.05);
}
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin: -0.5rem 0 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}
.auth-forgot:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.btn-auth-submit {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    outline: none;
}
.btn-auth-submit:hover {
    background: var(--primary-dark);
    color: #fff;
}
.btn-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-switch span {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.auth-switch span:hover {
    text-decoration: underline;
}
.auth-hidden { display: none !important; }