/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

/* ================= HEADER ================= */

nav {
    background: #ffffff;
    padding: 16px 40px;
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;
    gap: 25px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.05);

    position: sticky;
    top: 0;
    z-index: 100;
}

/* Ссылки меню */

nav a {
    text-decoration: none;
    font-weight: 600;
    color: #444;

    padding: 8px 14px;
    border-radius: 6px;

    position: relative;

    transition: all 0.2s;
}

/* Hover эффект */

nav a:hover {
    color: #ff9800;
}

/* Активная страница */

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 0;

    width: 100%;
    height: 3px;

    background: #ff9800;
}

/* Последний пункт меню уходит вправо */

nav a:last-child {
    margin-left: auto;
}

/* ================= LAYOUT ================= */

.layout {
    display: flex;
}

.content {
    flex: 1;
    padding: 40px;
}

/* ================= SIDEBAR ================= */

.menu-links-vertical {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-links-vertical a {
    display: block;
    width: 100%;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.menu-links-vertical a:hover {
    background: #fff3e0;
}

.menu-links-vertical a.active {
    background: #fff3e0;
}

.menu-links-vertical a.active::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ff9800;
    border-radius: 2px;
}

/* ================= FORM ================= */

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

select {
    width: 100%;
    padding: 10px 40px 10px 10px;
    font-family: monospace;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff9800' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

select:hover {
    border-color: #ff9800;
}

select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 3px rgba(255,152,0,0.5);
}

/* ================= BUTTONS ================= */

button {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #45a049;
}

button:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 3px #ff9800;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.read-more:hover {
    background: #43a047;
    box-shadow: inset 0 0 0 2px #ff9800;
}

/* ================= RESULT ================= */

#message {
    margin-top: 20px;
    font-weight: bold;
    color: #4CAF50;
}

#result {
    margin-top: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
}

/* ================= NEWS ================= */

.news-content {
    font-size: 16px;
    line-height: 1.7;
    max-width: 900px;
}

.news-content h1,
.news-content h2 {
    margin-top: 30px;
}

.news-content ul {
    margin-left: 20px;
}

/* ================= ICON ================= */

.copy-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #4CAF50;
    transition: fill 0.2s;
}

.copy-icon:hover {
    fill: #ff9800;
}

/* ================= PROVIDER TABS ================= */

.provider-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
    border-bottom: 3px solid #e0e0e0;
}

.provider-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px 6px 0 0;
    background: #4CAF50;
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    transition: all 0.2s ease;
}

.provider-tab:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.provider-tab.active {
    background: #2e7d32;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.provider-tab.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ff9800;
    border-radius: 2px;
}

/* ================= GAMES GRID ================= */

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

.game-card {
    height: 260px;
    background: #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.game-title {
    margin-top: 10px;
    font-weight: bold;
}

/* ================= LINK ================= */
.game-link {
    text-decoration: none;
    color: inherit;
}

/* ================= User/Exit ================= */
.user-link {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ff6600;
}