/* Styles for the initial welcome screen */

#controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    box-sizing: border-box;
    z-index: 10;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    background: radial-gradient(circle at 50% 50%, rgba(var(--welcome-gradient-rgb), 0.25), transparent 70%);
}

#controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-panel {
    width: 100%;
    max-width: 450px;
    background: rgba(var(--panel-bg-rgb), calc(var(--gui-bg-alpha) * 0.5));
    border: 1px solid rgba(var(--panel-border-rgb), 0.1);
    border-radius: 12px;
    padding: 30px 40px;
    backdrop-filter: blur(var(--gui-blur-strength));
    -webkit-backdrop-filter: blur(var(--gui-blur-strength));
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(50px);
    animation: panel-fade-in 1s 0.3s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes panel-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-graphic {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.header-graphic::before, .header-graphic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-ring 3s infinite ease-in-out;
}

.header-graphic::before {
    width: 65%;
    height: 65%;
    border: 1px solid var(--primary-color-glow);
    animation-delay: 0s;
}

.header-graphic::after {
    width: 25%;
    height: 25%;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.3;
    }
}

.welcome-panel h1 {
    font-size: 2.8em;
    font-weight: 200;
    letter-spacing: 1px;
    color: #000;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    margin: 0;
    line-height: 1.1;
}

.welcome-panel h1 .highlight {
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color-glow);
}

.subtitle {
    font-size: 1.1em;
    color: #000;
    margin: -15px 0 10px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.advertisement-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid rgba(var(--panel-border-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--panel-border-rgb), 0.1);
    margin: -10px 0; /* Adjust to fit with the flex-gap of the parent */
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    color: #000;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item::before {
    content: '✔';
    color: #22c55e;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.7), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-buttons .button-like {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.action-buttons .button-like svg {
    transition: transform 0.3s ease;
}

.action-buttons .button-like:hover svg {
    transform: scale(1.1);
}

.primary-action {
    background-color: var(--primary-color-dark);
    border: 1px solid var(--primary-color);
    color: var(--background-color-dark);
    box-shadow: 0 0 15px var(--primary-color-glow);
}

.primary-action:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-color-glow);
    transform: translateY(-2px);
    color: var(--background-color-dark);
}

.secondary-action {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #000;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.secondary-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    color: #000;
}

.info-footer {
    border-top: 1px solid rgba(var(--panel-border-rgb), 0.1);
    padding-top: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    flex-wrap: wrap;
    gap: 15px;
}

.info-footer a.footer-link, .info-footer a.footer-link svg {
    color: #000 !important;
    fill: #000 !important;
    stroke: #000 !important;
    text-shadow: none;
}

.footer-link {
    color: #000;
    text-shadow: none;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color-glow);
}

.support-links-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link.support-link:hover {
    color: var(--primary-color);
}