/*
Theme Name: Awesome Theme (App Style)
Theme URI: http://example.com/awesome-theme
Author: Your Name
Author URI: http://example.com
Description: Responsive app-style WordPress theme with video background
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awesome
*/

/* ===== Base & Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Fullscreen Video Background ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    z-index: -10;
}

/* ===== Main Layout Structure ===== */
#main-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 15px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 15px;
    margin: 20px 0;
}

/* ===== App Header ===== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 15px;
    z-index: 10;
}

.website-slogan {
    color: rgb(125, 164, 216);
    text-align: left;
}

.website-slogan h1 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.website-slogan p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Ad Banners ===== */
.ad-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ad-banner {
    min-width: 120px;
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-5px);
}

.ad-banner-left {
    margin-right: 10px;
}

.ad-banner-right {
    margin-left: 10px;
}

/* ===== Category Buttons ===== */
.center-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 900px;
    padding: 20px 0;
}

.category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(220, 20, 60, 0.85);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    min-height: 120px;
}

.category-button:hover {
    background: rgba(255, 0, 0, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.25);
}

.category-button:active {
    transform: translateY(1px);
}

.category-button i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ===== Overflow Board (Modal) ===== */
.overflow-board {
    background: rgba(18, 18, 18, 0.98);
    color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96vw;
    height: 88vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.overflow-header {
    background: rgba(40, 40, 40, 0.7);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overflow-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.overflow-header .close-btn {
    background: rgba(255, 50, 50, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.overflow-header .close-btn:hover {
    background: rgb(255, 30, 30);
}

.overflow-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
}

.post-list-scrollable {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.post-item {
    background: rgba(30, 30, 30, 0.7);
    text-align: center;
    border: 1px solid rgba(218, 67, 67, 0.5);
    padding: 15px 10px;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-5px);
    border-color: rgba(218, 67, 67, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 40, 0.8);
}

.post-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.post-summary h3 {
    font-size: 1rem;
    margin: 8px 0;
    color: #fff;
    padding: 8px;
    line-height: 1.4;
}

.post-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: auto;
    padding-top: 10px;
}

/* ===== Footer ===== */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    width: 100%;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #ff4d4d;
    transform: translateY(-3px);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
    .content-container {
        flex-direction: column;
    }
    
    .ad-container {
        order: -1;
        margin-bottom: 20px;
    }
    
    .ad-banner {
        height: 150px;
        width: 48%;
    }
    
    .center-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .center-buttons {
        gap: 12px;
    }
    
    .category-button {
        padding: 18px 10px;
        font-size: 1rem;
        min-height: 100px;
    }
    
    .post-list-scrollable {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .overflow-board {
        width: 98vw;
        height: 92vh;
        top: 50%;
        border-radius: 16px;
    }
    
    .overflow-content {
        padding: 15px;
    }
    
    .ad-banner {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .center-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-list-scrollable {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-button i {
        font-size: 1.8rem;
    }
    
    .app-header {
        padding: 12px 15px;
    }
}

/* ===== Overlay Effect ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

/* ===== Animation Keyframes ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-header, .center-buttons, .ad-banner, .site-footer {
    animation: fadeIn 0.6s ease-out forwards;
}