/* === Layout panelu === */
.explore-panel {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    color: #f0f0f0;
}

/* === Nadpisy === */
.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
}

/* === Dvoupanelové rozložení === */
.explore-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* === Sekce formuláře === */
.explore-panel-section {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* === Sekce nadpisy === */
.explore-panel-section h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* === Popis sekce === */
.panel-description {
    font-size: 0.95rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
}

/* === Oddělovač === */
.line {
    height: 1px;
    background-color: #444;
    margin-bottom: 1.5rem;
}

form h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    color: #dddddd;
}

/* === Vstupní pole === */
form input[type="text"],
form textarea,
form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(5, 14, 18, 0.72);
    color: var(--geo-text, #f4fff9);
    border: 1px solid rgba(159, 255, 220, 0.18);
    border-radius: var(--geo-radius, 12px);
    font-size: 1rem;
    box-sizing: border-box;
}

form input::placeholder,
form textarea::placeholder {
    color: #888;
}

form textarea {
    min-height: 45px;
    resize: vertical;
}

form select {
    appearance: none;
    border: 1px solid var(--geo-control-border, rgba(159, 255, 220, 0.28));
    background-image:
        linear-gradient(45deg, transparent 50%, #00ffae 50%), linear-gradient(135deg, #00ffae 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

form select:focus {
    outline: none;
    border-color: rgba(0, 255, 174, 0.7);
    transform: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 174, 0.12);
}

.publish-button {
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(to right, #00ffae, #00c78a);
    color: #000;
    font-weight: bold;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

.publish-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 255, 174, 0.3);
}

.custom-select-container {
    position: relative;
    width: 100%;
    font-family: sans-serif;
}

.custom-select-trigger {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: var(--geo-control-bg, rgba(5, 14, 18, 0.72));
    border: 1px solid var(--geo-control-border, rgba(159, 255, 220, 0.28));
    border-radius: var(--geo-radius, 12px);
    color: var(--geo-text, #f4fff9);
    padding: 10px 16px;
    padding-right: 2.5rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    font-size: 14px;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #00ffae;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.custom-select-container.open .custom-select-trigger {
    border-color: rgba(0, 255, 174, 0.7);
    background-color: var(--geo-control-bg-focus, rgba(8, 22, 25, 0.92));
    box-shadow: var(--geo-focus-ring, 0 0 0 3px rgba(0, 255, 174, 0.12));
}

.custom-select-container.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 25, 31, 0.98);
    border: 1px solid rgba(159, 255, 220, 0.18);
    border-radius: var(--geo-radius, 12px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    margin-top: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.custom-select-container.open .custom-select-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-select-options span {
    all: unset;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.custom-select-options span:hover {
    color: #00ffae;
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-select-options span[data-value="Easy"]:hover {
    color: #00ffae;
}

.custom-select-options span[data-value="Medium"]:hover {
    color: orange;
}

.custom-select-options span[data-value="Hard"]:hover {
    color: red;
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.hidden {
    display: none;
}

.modal-content {
    background-color: #1d1d1d;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    color: #fff;
    box-shadow: 0 0 20px #00ffaeaa;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #00ffae;
    cursor: pointer;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.icon-option {
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    transition:
        border-color 0.3s,
        background-color 0.3s;
}

.icon-option:hover,
.icon-option:focus {
    border-color: #00ffae;
    background-color: #00ffae22;
    outline: none;
}

#selected-icon-preview {
    min-height: 2.5rem;
    color: #00ffae;
}

.icon-button {
    padding: 0.5rem 1rem;
    margin-top: 20px;
    background-color: #00ffae;
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

.icon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 255, 174, 0.2);
}

.tag-selection-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tag-section {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex: 1;
    min-width: 280px;
    transition: background-color 0.3s ease;
}

.tag-section:hover {
    background-color: #343434;
}

.tag-section.selected {
    background-color: #007148;
    box-shadow: 0 0 12px rgba(0, 255, 174, 0.2);
}

.tag-section.selected:hover {
    background-color: #008554;
}

.tag-section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.tag-options,
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    padding: 6px 12px;
    background-color: #e6e6e6;
    color: #1a1a1a;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tag-chip:hover {
    background-color: #d5d5d5;
    transform: scale(1.05);
}

.tag-chip.selected {
    background: #00c78a;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(0, 255, 174, 0.25);
    transform: scale(1.08);
}
