/* RESET & BASE */
* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background-color: #ffe6f0; /* soft pink */
    background-image: 
        radial-gradient(#ffb6c1 10%, transparent 10%),
        radial-gradient(#ffb6c1 10%, transparent 10%);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
}

/* 3 COLUMN LAYOUT */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.sidebar { width: 25%; }
.main    { width: 50%; }
.right-col { width: 25%; }

/* HEADINGS */
h1, h2, h3, p { text-align: center; }
h1 { color: #e63946; margin-top: 30px; }
h2 { color: #e63946; margin: 20px 0; }
h3 { color: #d62839; margin-top: 30px; }

/* FORM ELEMENTS */
select, input, button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 6px;
}

input, select { border: 1px solid #ccc; }

button {
    background: #e63946;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
button:active { transform: scale(0.98); }

/* SCORE */
.score { font-size: 40px; font-weight: bold; color: #e63946; text-align: center; margin: 20px 0; }

/* SHARE & TRY AGAIN */
.share, .try-again {
    display: block;
    text-align: center;
    padding: 14px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}
.share { background: #25D366; color: #fff; }
.share:hover { background: #1ebe57; }
.try-again { background: #e63946; color: #fff; }
.try-again:hover { background: #d62839; }

/* LISTS */
ul { padding-left: 18px; }
ul li a { line-height: 1.9em; color: #e63946; text-decoration: none; }
ul li a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media(max-width:900px) {
    .container { flex-direction: column; }
    .sidebar, .main, .right-col { width: 100%; }
}
@media(max-width:480px) {
    body { padding: 14px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .score { font-size: 36px; }
}

/* -- sidebar recent posts -- */
    .sidebar-recent-posts {
    background: #fff0f5; /* soft pink bg for sidebar */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-recent-posts h3 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    color: #e63946;
}

.sidebar-recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-posts ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.sidebar-recent-posts ul li:hover {
    transform: translateX(5px);
}

.sidebar-recent-posts .thumbnail img {
    width: 12vw;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 5px;
}

.sidebar-recent-posts .title {
    font-size: 16px;
    color: #333;
    display: inline-block;
}

/* Mobile collapse */
@media (max-width: 768px) {
    .sidebar-recent-posts ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-recent-posts .thumbnail img {
        margin-bottom: 6px;
        width:50vw;
        height: auto;
    }
}