/* Optimized CSS for Fortune Tiger Site */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: "Titillium", Arial, sans-serif;
    background: #eee;
    color: #444;
    font-size: 15px;
    line-height: 1.5em;
    font-weight: 300;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 300;
    word-wrap: break-word;
    margin-bottom: 14px;
    line-height: 1.3em;
}

h1 { font-size: 38px; letter-spacing: -1px; }
h2 { font-size: 34px; letter-spacing: -0.7px; }
h3 { font-size: 28px; letter-spacing: -0.5px; }
h4 { font-size: 24px; letter-spacing: -0.3px; }
h5 { font-size: 20px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; text-transform: uppercase; }

/* Entry Meta Styles */
.entry-meta {
    margin: 15px 0 25px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.entry-author, .entry-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-label, .date-label {
    font-weight: 600;
    color: #333;
}

.author-name {
    color: #bb8629;
    font-weight: 500;
}

.updated-date {
    color: #666;
    font-style: italic;
}

/* Mobile styles for entry meta */
@media screen and (max-width: 767px) {
    .entry-meta {
        flex-direction: column;
        gap: 10px;
        margin: 10px 0 20px 0;
        padding: 10px 0;
    }
    
    .entry-author, .entry-date {
        justify-content: flex-start;
    }
}

/* Author Bio Styles */
.author-bio {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-bio-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bb8629;
}

.author-info {
    flex: 1;
}

.author-name-bio {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.author-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: #bb8629;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #a07426;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.instagram:hover {
    background: #e4405f;
}

/* Mobile styles for author bio */
@media screen and (max-width: 767px) {
    .author-bio {
        margin: 30px 0;
        padding: 20px;
    }
    
    .author-bio-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .author-name-bio {
        font-size: 20px;
    }
    
    .author-description {
        font-size: 15px;
    }
    
    .author-social {
        justify-content: center;
    }
}

p { margin-bottom: 1em; }
a { color: #333; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }

/* Layout */
#wrapper {
    background: #fff;
    min-width: 320px;
    min-height: 100vh;
    border-top: 10px solid #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    background: #0c0c0c;
    position: relative;
    z-index: 99;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#header .group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.site-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 60px;
}

.site-title a {
    display: block;
    color: #fff;
    max-width: 100%;
}

.site-title a img {
    display: block;
    max-width: 100%;
    max-height: 60px;
    height: auto;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 20px 0 0;
    position: relative;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-toggle-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle-icon span:nth-child(1) { top: 0px; }
.menu-toggle-icon span:nth-child(2) { top: 8px; }
.menu-toggle-icon span:nth-child(3) { top: 16px; }

/* Search */
.toggle-search {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
}

.search-expand {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.search-expand-inner {
    padding: 15px;
}

.search-expand input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Content */
#page {
    padding: 60px 0 80px;
}

.entry-header,
.entry-content,
.entry-footer {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.entry-header {
    margin: 40px auto;
    position: relative;
}

.entry-title {
    font-weight: 600;
    font-size: 50px;
    line-height: 1.3em;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #333;
}

.entry-content {
    font-size: 19px;
    line-height: 1.6em;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 18px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    font-weight: 600;
    background: #f9f9f9;
}

table tr.alt {
    background: #eee;
}

/* Buttons */
.maskbut {
    cursor: pointer;
    transition: 1s;
    background: #dd3333;
    padding: 15px 35px;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    box-shadow: none;
    display: inline-block;
    border: 4px double #dd3333;
    text-align: center;
    line-height: 25px;
    text-decoration: none;
    margin: 10px 0;
}

.maskbut:hover {
    transition: 1s;
    box-shadow: none;
    background-color: #fff;
    color: #dd3333;
    border-color: #dd3333;
}

.bonus-button {
    display: inline-block;
    background: linear-gradient(to bottom, #eccb7d, #845f3b);
    border: 1px solid #846a29;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.bonus-button:hover {
    background: linear-gradient(to bottom, #f3c75f, #6a5540);
    color: #fff;
}

/* Footer */
#footer {
    background: #bb8629;
    color: #777;
    position: relative;
    padding: 40px 0;
    text-align: center;
}

#footer-bottom {
    position: relative;
    overflow: hidden;
    z-index: 99;
    text-align: center;
}

#footer-bottom a {
    color: #fff;
}

#footer-bottom a:hover {
    color: rgba(255,255,255,0.8);
}

#back-to-top {
    background: #fff;
    color: #333;
    padding: 10px 0;
    text-align: center;
    width: 60px;
    height: 30px;
    display: block;
    margin: 0 auto;
    margin: -1px auto 0;
    border-radius: 0 0 4px 4px;
}

#back-to-top i {
    font-size: 38px;
    position: relative;
    top: -7px;
}

/* --- Added Optimizations for YMYL/EEAT & Template Improvement --- */

/* Table of Contents */
.toc-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.toc-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #bb8629;
    display: inline-block;
    padding-bottom: 5px;
}
.toc-list {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}
@media(max-width: 600px) {
    .toc-list { columns: 1; }
}
.toc-list li {
    margin-bottom: 8px;
}
.toc-list a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    display: block;
    padding: 2px 0;
}
.toc-list a:hover {
    color: #bb8629;
    text-decoration: none;
    padding-left: 5px;
}

/* Sticky Footer Button (Mobile) */
.sticky-footer-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(to bottom, #eccb7d, #845f3b);
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 10000;
    text-decoration: none;
    display: none;
    border: 3px solid #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}
@media (max-width: 768px) {
    .sticky-footer-btn {
        display: block;
    }
}
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(236, 203, 125, 0.7); }
    70% { transform: translateX(-50%) scale(1.02); box-shadow: 0 0 0 10px rgba(236, 203, 125, 0); }
    100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(236, 203, 125, 0); }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
.whatsapp-icon-svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* Responsible Gambling Footer */
.responsible-gambling-footer {
    background: #fdf2f2;
    color: #a94442;
    padding: 30px 20px;
    text-align: center;
    border-top: 4px solid #d9534f;
    margin-top: 50px;
}
.responsible-gambling-inner {
    max-width: 800px;
    margin: 0 auto;
}
.rg-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}
.responsible-gambling-footer h4 {
    color: #d9534f;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.responsible-gambling-footer p {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}
.responsible-gambling-footer a {
    color: #d9534f;
    text-decoration: underline;
    font-weight: 700;
}
.responsible-gambling-footer a:hover {
    color: #c9302c;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-question {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
    position: relative;
    padding-left: 25px;
}
.faq-question:before {
    content: '?';
    position: absolute;
    left: 0;
    top: 2px;
    background: #bb8629;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
}
.faq-answer {
    color: #555;
    line-height: 1.7;
    padding-left: 25px;
}
