/*
Theme Name: Wordle Answers
Theme URI: https://apkthemes.pages.dev
Author: AKHTAR
Author URI: https://akhtar.pages.dev
Description: A professional WordPress theme for Wordle Answers with article schema and modern design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wordle-answers
*/

/* ==== CSS RESET ==== */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: #ffffff;
	color: #1f2937;
	line-height: 1.7;
	font-size: 1rem;
}

ul, ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

button, input, select, textarea {
	font: inherit;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	outline: none;
	appearance: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

blockquote, figure, hr {
	margin: 0;
	padding: 0;
}

hr {
	border: none;
	height: 1px;
	background-color: #e5e7eb;
	margin: 1rem 0;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.7;
    font-size: 1rem;
}

a {
	color: #1d4ed8;
	text-decoration: none !important;
	transition: color 0.3s ease;
	cursor: pointer;
}

h1 {
	font-size: 22px;
}

h2 {
	font-size: 20px;
}

ul {
  list-style-type: disc;
  padding: 10px 20px;
}

header, footer {
	background-color: #111827;
	color: #f9fafb;
	text-align: center;
	padding: 20px;
}

header a {
	color: #FFF;
}

header h1 a {
	color: #FFF;
}

h1 a:hover {
	color: #FFF;
	text-decoration: none;
}

#main{
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem;
}

article {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}

article h1,
article h2 {
	color: #111827;
	margin-bottom: 0.5rem;
}

.wordle-container {
	max-width: 600px;
	margin: auto;
	padding: 20px;
	text-align: center;
	align-content: center;
	align-items: center;
}

.wordle-text {
	display: flex;
	flex-direction: column;
	align-content: center;
	align-items: center;
}

.wordle-text p {
	padding: 10px;
}

.recent-post-custom-fields p {
	color: #333;
	font-family: 'Arial', sans-serif;
}

.wordle-wrapper {
	margin-top: 15px;
}

.wordle-boxes {
	display: flex;
	gap: 8px;
	margin: 10px 0;
	justify-content: center;
}

.letter-box {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border: 2px solid #3498db;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	perspective: 1000px;
}

.letter-box:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.letter-hidden,
.letter-revealed {
	font-size: 24px;
	font-weight: bold;
	position: absolute;
	transition: opacity 0.3s ease;
	text-transform: uppercase;
}

.letter-hidden {
	color: #e74c3c;
	opacity: 1;
}

.letter-revealed {
	color: #2ecc71;
	opacity: 0;
}

.letter-box.revealed .letter-hidden {
	opacity: 0;
}

.letter-box.revealed .letter-revealed {
	opacity: 1;
}

.reveal-button {
	margin-top: 15px;
	padding: 10px 20px;
	background: #3498db;
	color: white;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.reveal-button:hover {
	background: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(52, 152, 219, 0.4);
}

.reveal-button:active {
	transform: translateY(1px);
	box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.home-recent {
	margin-bottom: 10px;
}

.post-content-wrapper {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    align-items: flex-start;
}

.featured-image {
    flex: 0 0 200px;
    position: relative;
}

.featured-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    filter: brightness(50%);
}

.featured-image .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.post-details {
    flex: 1;
}

@media (max-width: 768px) {
    .post-content-wrapper {
        flex-direction: column;
    }

    .featured-image {
        flex: 0 0 auto;
    }

    .featured-image img {
        width: 100%;
        height: auto;
    }
}

.post-thumbnail {
    position: relative; /* Added for text positioning */
}

.post-thumbnail img {
    width: 1200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: brightness(50%); /* Adds the slight darkening effect */
}

.post-thumbnail .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.single-post h1 {
	color: #111827;
}

.single-post .articleBody {
	font-size: 1.1rem; 
	line-height: 1.7;
	color: #333;
}

.single-post p {
	padding: 10px 0;
}

.pagination {
	text-align: center;
	margin-top: 30px;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 10px 15px;
	margin: 0 5px;
	background-color: #f0f0f0;
	color: #333;
	text-decoration: none;
	border-radius: 5px;
}

.pagination a:hover {
	background-color: #0073e6;
	color: #fff;
}

.pagination .current {
	background-color: #0073e6;
	color: #fff;
}

.read-more-btn {
	display: inline-block;
	padding: 10px 20px;
	margin-top: 10px;
	background-color: #0073e6;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.read-more-btn:hover {
	background-color: #005bb5;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

#main {
    flex: 1; 
}

footer {
    margin-top: auto; 
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-menu ul li a {
    text-decoration: none;
    color: #FFF;
}