/* ===== Variables & Base Styles ===== */
.hidden {
    display: none !important;
}

:root {
    --primary-color: #000000;
    --secondary-color: #FFFFFF;
    --accent-color: #FF6600;
    --accent-gradient: linear-gradient(135deg, #FF6600 0%, #E65C00 100%);
    --card-gradient: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
}

[data-theme="light"] {
    --primary-color: #FFFFFF;
    --secondary-color: #333333;
    --card-gradient: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 100%);
    
    /* Lenyíló ablak szöveg */
    .accordion-content {
        color: #333333;
    }
    
    /* Fejléc/lábléc */
    header {
        background: var(--primary-color);
    }
    footer {
        background: var(--primary-color);
    }
    
    /* Android logo színezés */
    .android-logo-container img {
        filter: brightness(0) invert(0);
    }
}

/* Témaváltó gomb */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background-color: transparent !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Layout Components ===== */
header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

/* Fejléc átmenet eltávolítva */

main {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

/* ===== UI Components ===== */
.card {
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align:justify;
    

   
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.download-section {
    border: 2px solid var(--accent-color);
}

/* Accordion */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
}

.accordion-header h2 {
    margin: 0;
    width: 100%;
}

.accordion-icon {
    width: 30px;
    height: 30px;
    margin-left: 1rem;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion.active .accordion-content {
    max-height: 1000px;
    padding: 0 1rem 1rem;
}

/* Logo Styles */
.logo-container {
    max-width: 200px;
    margin: 0 auto;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.android-logo-container {
    text-align: center;
    margin: 1rem auto 0;
    width: 50%;
    max-width: 80px;
    padding: 1rem;
}

.android-logo-container img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.android-logo-container img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

/* Buttons */
button {
    background: var(--accent-gradient);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* CAPTCHA */
.captcha-container {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.captcha-container input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #555;
    background: #FFFFFF;
    color: #333333;
}

.captcha-success {
    padding: 0.8rem 1.2rem;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    text-align: center;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .captcha-success {
    background: #f5f5f5;
    color: var(--accent-color);
}

.refresh-captcha {
    width: 50%;
    padding: 0.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: auto;
}

/* Progress Bar */
.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    margin: 0.5rem 0;
}

.progress {
    height: 100%;
    width: 0;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: width 0.1s;
}

.download-complete {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: rgba(255, 165, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.download-complete ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.download-complete li {
    margin-bottom: 0.5rem;
}

.download-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.download-link:hover {
    background: #e55c00;
}

/* Installation Guide */
.install-guide {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.install-guide h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.install-guide ul.requirements {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.install-guide ol.steps {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.install-guide ol.steps > li {
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
    position: relative;
    padding-left: 2rem;
}

.install-guide ol.steps > li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--accent-color);
}

.install-guide ol.steps ol {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style-type: none;
}

.guide-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: contain;
    aspect-ratio: auto;
}

.install-guide .warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 4px;
}

.install-guide .warning h4 {
    color: #ff4500;
    margin-top: 0;
}

.screenshot-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .card {
        padding: 1.2rem;
    }

    button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    body {
        font-size: 1rem;
    }

    .logo-container {
        max-width: 200px;
        padding: 1rem 0;
    }

    .android-logo-container {
        max-width: 100px;
        width: 80%;
    }

    .screenshot-container img {
        margin-bottom: 1rem;
    }

    .accordion-icon {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    button {
        width: 100%;
        padding: 1.2rem;
    }
}

@media (hover: none) {
    button:hover {
        background-color: var(--accent-color);
    }
}
