/* =========================================================
   АРХИВ ЮМОРЕСОК
   Стиль: "интернет примерно 2010 года"
   ========================================================= */


/* ---------- ОСНОВНЫЕ НАСТРОЙКИ ---------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #333;

    background:
        radial-gradient(
            circle at top,
            #eef5fa 0,
            #d6e0e8 45%,
            #bdc9d2 100%
        );

    font-size: 14px;
}


/* ---------- ОБЩАЯ ОБЁРТКА ---------- */

.page {
    width: 960px;
    max-width: calc(100% - 20px);

    margin: 20px auto 40px;

    background: #fff;

    border: 1px solid #7d8b96;

    border-radius: 7px;

    box-shadow:
        0 2px 4px rgba(0,0,0,.25),
        0 10px 30px rgba(0,0,0,.15);

    overflow: hidden;
}


/* ---------- ШАПКА ---------- */

.header {
    min-height: 125px;

    padding: 25px 30px;

    position: relative;

    background:
        linear-gradient(
            to bottom,
            #eaf6ff 0%,
            #c5e3f8 45%,
            #8cbde0 50%,
            #6aa5cf 100%
        );

    border-bottom: 1px solid #4b7f9e;

    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -2px 5px rgba(0,0,0,.15);
}


/* декоративная белая полоска */

.header::after {
    content: "";

    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 7px;

    height: 2px;

    background: rgba(255,255,255,.65);

    border-radius: 50%;
}


.logo {
    text-align: center;

    text-shadow:
        0 1px 0 #fff,
        0 2px 2px rgba(0,0,0,.2);
}


.logo-main {
    color: #1b5478;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;

    font-weight: bold;

    letter-spacing: -1px;
}


.logo-sub {
    margin-top: 5px;

    color: #42677d;

    font-size: 13px;

    font-style: italic;

    letter-spacing: 1px;
}


.header-decoration {
    position: absolute;

    right: 25px;
    top: 15px;

    color: rgba(255,255,255,.75);

    font-size: 18px;

    letter-spacing: 5px;
}


/* ---------- МЕНЮ ---------- */

.menu {
    display: flex;

    padding: 6px 10px;

    gap: 5px;

    background:
        linear-gradient(
            to bottom,
            #f9f9f9,
            #d9d9d9
        );

    border-bottom: 1px solid #aaa;

    box-shadow:
        inset 0 1px 0 #fff;
}


.menu button,
.side-button,
.category-list button,
.big-button,
.rating-button {
    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    border: 1px solid #8b8b8b;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #eeeeee 48%,
            #d1d1d1 52%,
            #ededed 100%
        );

    color: #333;

    box-shadow:
        inset 0 1px 0 #fff,
        0 1px 2px rgba(0,0,0,.2);

    text-shadow: 0 1px 0 #fff;
}


.menu button {
    padding: 7px 15px;

    border-radius: 4px;

    font-size: 12px;

    font-weight: bold;
}


.menu button:hover,
.side-button:hover,
.category-list button:hover {
    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #d7ebf8
        );

    border-color: #6b9ab6;

    color: #174f72;
}


.menu button:active,
.side-button:active,
.category-list button:active,
.big-button:active {
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,.2);

    transform: translateY(1px);
}


/* ---------- КОНТЕНТ ---------- */

.content {
    display: grid;

    grid-template-columns: 1fr 220px;

    gap: 20px;

    padding: 20px;
}


.main-column {
    min-width: 0;
}


/* ---------- ЗАГОЛОВКИ ---------- */

.section-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 12px;

    padding: 7px 10px;

    color: #255d7d;

    font-size: 16px;

    font-weight: bold;

    text-shadow: 0 1px 0 #fff;

    background:
        linear-gradient(
            to bottom,
            #eef8ff,
            #d0e8f6
        );

    border: 1px solid #a5c5d7;

    border-radius: 5px;

    box-shadow:
        inset 0 1px 0 #fff;
}


.section-title span:first-child,
.section-title span:last-child {
    color: #e0a500;

    text-shadow:
        0 1px 0 #fff,
        0 1px 2px rgba(0,0,0,.3);
}


.section-title.small {
    justify-content: flex-start;

    margin-top: 20px;

    font-size: 14px;
}


/* ---------- КАРТОЧКА ЮМОРА ---------- */

.joke-card {
    border: 1px solid #a8a8a8;

    border-radius: 6px;

    background: #fff;

    box-shadow:
        0 2px 4px rgba(0,0,0,.12);

    overflow: hidden;
}


.joke-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 7px 10px;

    color: #777;

    font-size: 11px;

    background:
        linear-gradient(
            to bottom,
            #f8f8f8,
            #e8e8e8
        );

    border-bottom: 1px solid #ccc;
}


.category {
    display: inline-block;

    padding: 2px 7px;

    color: #fff;

    background: #7aa3ba;

    border-radius: 3px;

    font-size: 10px;

    text-transform: uppercase;

    text-shadow: 0 1px 1px rgba(0,0,0,.3);
}


.joke-text {
    min-height: 180px;

    padding: 30px 35px;

    white-space: pre-line;

    color: #252525;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    line-height: 1.65;

    text-align: left;
}


.joke-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 10px;

    background: #f5f5f5;

    border-top: 1px solid #ddd;
}


.rating {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #777;

    font-size: 11px;
}


.rating-button {
    width: 32px;
    height: 28px;

    padding: 0;

    border-radius: 4px;

    font-size: 16px;
}


.rating-button:hover {
    background:
        linear-gradient(
            to bottom,
            #fffbd8,
            #ffe98c
        );

    border-color: #c7a82d;
}


.big-button {
    padding: 8px 14px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: bold;

    color: #174f72;

    border-color: #6797b1;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #cfe8f7
        );
}


.big-button:hover {
    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #b8def2
        );
}


/* ---------- СТАТУС ---------- */

.status-box {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 12px;

    padding: 8px 10px;

    color: #666;

    font-size: 11px;

    background: #ffffe6;

    border: 1px solid #ddd99a;

    border-radius: 4px;
}


.status-box strong {
    color: #8a7400;
}


.status-right {
    text-align: right;
}


/* ---------- СПИСОК ---------- */

.joke-list {
    border: 1px solid #c5c5c5;

    border-radius: 5px;

    overflow: hidden;
}


.joke-list-item {
    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 9px 10px;

    border: 0;

    border-bottom: 1px solid #ddd;

    background: #fff;

    text-align: left;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    color: #444;
}


.joke-list-item:last-child {
    border-bottom: 0;
}


.joke-list-item:nth-child(even) {
    background: #f7f7f7;
}


.joke-list-item:hover {
    background: #eaf5fb;

    color: #1d5878;
}


.list-number {
    width: 50px;

    color: #999;

    font-size: 11px;

    text-align: right;
}


.list-text {
    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;
}


/* ---------- SIDEBAR ---------- */

.sidebar {
    min-width: 0;
}


.sidebar-box {
    margin-bottom: 15px;

    padding: 0;

    border: 1px solid #aaa;

    border-radius: 5px;

    background: #f8f8f8;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(0,0,0,.1);
}


.sidebar-title {
    padding: 7px 9px;

    color: #fff;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: .5px;

    background:
        linear-gradient(
            to bottom,
            #83afc7,
            #547f99
        );

    border-bottom: 1px solid #45687a;

    text-shadow:
        0 1px 1px rgba(0,0,0,.4);
}


.side-button {
    display: block;

    width: calc(100% - 14px);

    margin: 7px;

    padding: 7px;

    border-radius: 4px;

    text-align: left;

    font-size: 11px;
}


.category-list {
    padding: 5px 7px;
}


.category-list button {
    display: block;

    width: 100%;

    padding: 6px 7px;

    border: 0;

    border-bottom: 1px dotted #bbb;

    background: transparent;

    box-shadow: none;

    color: #426a80;

    text-align: left;

    font-size: 11px;

    cursor: pointer;
}


.category-list button:last-child {
    border-bottom: 0;
}


/* ---------- СЧЁТЧИК ---------- */

.visitor-box {
    text-align: center;
}


.visitor-counter {
    display: inline-block;

    margin: 12px auto 5px;

    padding: 5px 9px;

    color: #21ff21;

    background: #111;

    border: 2px inset #777;

    font-family:
        "Courier New",
        monospace;

    font-size: 20px;

    letter-spacing: 2px;
}


.visitor-text {
    padding: 0 10px 12px;

    color: #888;

    font-size: 10px;

    line-height: 1.4;
}


/* ---------- ПРЕДУПРЕЖДЕНИЕ ---------- */

.warning p {
    padding: 0 10px 10px;

    margin-bottom: 0;

    color: #777;

    font-size: 10px;

    line-height: 1.5;
}


/* ---------- FOOTER ---------- */

.footer {
    padding: 15px 20px;

    color: #888;

    background:
        linear-gradient(
            to bottom,
            #f0f0f0,
            #dcdcdc
        );

    border-top: 1px solid #aaa;

    text-align: center;

    font-size: 10px;

    line-height: 1.8;

    text-shadow: 0 1px 0 #fff;
}


.footer-links {
    margin-top: 4px;

    color: #567a8d;
}


/* ---------- СОСТОЯНИЯ ---------- */

.loading {
    opacity: .5;
}


.error {
    padding: 40px;

    color: #9b0000;

    text-align: center;
}


/* ---------- МОБИЛЬНАЯ ВЕРСИЯ ---------- */

@media (max-width: 700px) {

    .page {
        width: 100%;

        max-width: calc(100% - 10px);

        margin: 5px auto 20px;
    }


    .header {
        min-height: 105px;

        padding: 22px 10px;
    }


    .logo-main {
        font-size: 30px;
    }


    .logo-sub {
        font-size: 10px;
    }


    .header-decoration {
        display: none;
    }


    .menu {
        flex-wrap: wrap;

        justify-content: center;
    }


    .menu button {
        flex: 1;

        min-width: 100px;
    }


    .content {
        display: block;

        padding: 10px;
    }


    .sidebar {
        margin-top: 20px;
    }


    .joke-text {
        min-height: 150px;

        padding: 25px 20px;

        font-size: 17px;
    }


    .joke-bottom {
        flex-direction: column;

        align-items: stretch;
    }


    .rating {
        justify-content: center;
    }


    .big-button {
        width: 100%;
    }


    .status-box {
        display: block;
    }


    .status-right {
        margin-top: 5px;

        text-align: left;
    }
}

