/*!
Theme Name: yonogame
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9fafb;
}

/* Header Styles */
.site-header {
    background-color: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    color: #00ff41;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

.site-logo .logo-icon {
    width: 24px;
    height: 24px;
    background-color: #00ff41;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #00ff41;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #00ff41;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Sidebar */
.mobile-navigation {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #000;
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-navigation.active .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-navigation.active .mobile-nav-sidebar {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.mobile-logo {
    display: flex;
    align-items: center;
    color: #00ff41;
    font-size: 1rem;
    font-weight: bold;
}

.mobile-logo .logo-icon {
    width: 20px;
    height: 20px;
    background-color: #00ff41;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #00ff41;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #fff;
}

.mobile-nav-content {
    padding: 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #333;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: #333;
    color: #00ff41;
}

.mobile-nav-menu .current-menu-item a {
    background-color: #00ff41;
    color: #000;
}

.user-account {
    color: #fff;
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #00ff41 0%, #ffff00 50%, #ff6b35 100%);
    padding: 4rem 0;
    color: #333;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    opacity: 0.8;
}

/* Search Container - Bootstrap Enhanced */
.search-container .input-group {
    border-radius: 50px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none !important;
    padding: 1rem 2rem !important;
    font-size: 1rem;
}

.search-input:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.search-button {
    border-radius: 0 50px 50px 0 !important;
    padding: 1rem 2rem !important;
}

/* Categories Section - Bootstrap Enhanced */
.category-button {
    padding: 0.75rem 1rem !important;
    border-radius: 25px !important;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap;
}

.category-button:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-button .category-icon {
    font-size: 1.2rem;
}

/* Category Colors - Bootstrap Enhanced */

/* Games Grid - Bootstrap Cards Enhanced */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.game-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.game-image {
    width: 100%;
    height: 160px;
    position: relative;
    border-radius: 0.375rem 0.375rem 0 0;
}

.new-badge {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.game-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.game-category {
    font-size: 0.9rem;
    color: #666;
}

.download-button {
    font-weight: bold !important;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.view-all-link {
    color: #00ff41;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #00ff41;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background-color: #00ff41;
    color: #000;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    color: #fff;
}

.category-button:hover {
    transform: translateY(-2px);
}

.category-button .category-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Category Colors */


/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #666;
}

.stat-item::before {
    content: "●";
    margin-right: 0.5rem;
}

.stat-item.green::before {
    color: #22c55e;
}

.stat-item.yellow::before {
    color: #eab308;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd23f, #06ffa5);
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333; display: -webkit-box;      /* required for line clamp */
  -webkit-line-clamp: 3;     /* show max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.game-downloads {
    font-size: 0.9rem;
    color: #666;
}

.download-button {
    width: 100%;
    background-color: #00ff41;
    color: #000;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-button:hover {
    background-color: #00e63a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Show mobile navigation structure */
    .mobile-navigation {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .categories-grid {
        justify-content: center;
    }

    .stats-section {
        gap: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #2c3e50 !important;
    border-top: 3px solid #00ff41;
    position: relative;
}

.site-footer p {
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #00ff41 !important;
    border: none;
    color: #000 !important;
    font-size: 1.2rem;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

.back-to-top:hover {
    background-color: #00e63a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

.back-to-top:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 65, 0.5);
}

/* Bootstrap Overrides for Gaming Theme */
.btn-success {
    background-color: #00ff41;
    border-color: #00ff41;
    color: #000;
}

.btn-success:hover {
    background-color: #00e63a;
    border-color: #00e63a;
    color: #000;
}

/* Enhanced responsive design for Bootstrap */
@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .site-footer .row {
        text-align: center !important;
    }

    .site-footer .col-md-6:last-child {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Single Post Page Styles */
.game-detail-hero {
    border: 1px solid #e5e7eb;
}

.game-detail-hero .game-title {
    color: #dc2626 !important;
    font-size: 1.5rem;
}

.game-detail-hero .game-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.game-detail-hero .game-description {
    color: #374151;
    font-size: 0.95rem;
}

.game-placeholder-icon {
    border-radius: 12px !important;
}

.game-stats {
    border: 1px solid #e5e7eb;
}

.game-stats .stat-item {
    padding: 10px 5px;
}

.game-stats .stat-value {
    color: #374151;
    font-size: 0.9rem;
}

.social-share {
    border: 1px solid #e5e7eb;
}

.social-share .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.game-description-section {
    border: 1px solid #e5e7eb;
}

.game-description-section h3 {
    color: #059669 !important;
    border-bottom: 2px solid #d1fae5;
    padding-bottom: 8px;
}

.action-buttons .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.download-steps {
    padding-left: 1.25rem;
}

.download-steps li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.related-apps {
    border: 1px solid #e5e7eb;
}

.related-apps h3 {
    color: #059669 !important;
    border-bottom: 2px solid #d1fae5;
    padding-bottom: 8px;
}

.related-app-card .app-title {
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #374151;
}

.related-app-card .app-rating {
    font-size: 0.7rem;
}

.tags-section {
    border: 1px solid #e5e7eb;
    padding: 5px;
    float: left;
    width: 100%;
}

.tags-section a {
    float: left;
}

.tags-section h3 {
    color: #059669 !important;
    border-bottom: 2px solid #d1fae5;
    padding-bottom: 8px;
}

.tags-list .badge {
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.5rem 0.75rem !important;
}

/* Sidebar Styles */
.sidebar .widget {
    border: 1px solid #e5e7eb;
}

.sidebar .widget-title {
    color: #059669 !important;
    border-bottom: 2px solid #d1fae5;
    padding-bottom: 8px;
}

.recent-post-item .post-title a {
    font-size: 0.8rem;
    line-height: 1.3;
}

.recent-post-item .post-title a:hover {
    color: #059669 !important;
}

.recent-post-item .post-thumbnail {
    flex-shrink: 0;
}

/* Mobile Responsive for Single Post */
@media (max-width: 768px) {
    .game-detail-hero .row {
        text-align: center;
    }

    .game-detail-hero .col-md-3 {
        margin-bottom: 1rem;
    }

    .social-share .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .social-share .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }

    .related-apps .row {
        --bs-gutter-x: 0.5rem;
    }

    .related-app-card {
        padding: 0.5rem;
    }

    .sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .game-detail-hero .download-section {
        text-align: center;
    }

    .game-detail-hero .download-section .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .game-detail-hero .social-buttons {
        width: 100%;
    }

    .game-detail-hero .social-buttons .btn {
        width: 48%;
    }

    .game-stats .row {
        text-align: center;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .game-stats .col-3 {
        margin-bottom: 0;
        grid-column: span 1;
    }

    .tags-list .badge {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

.is-style-fill a {
    background: #00ff41 !important;
    color: #000 !important;
    padding: 5px 15px !important;
}

.is-style-outline a {
    border-color: #fcb900 !important;
    background: #fcb900 !important;
    color: #000 !important;
    padding: 5px 15px !important;
}

/* WordPress Block Columns Styles */
.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.wp-block-column {
    flex: 1 !important;
    min-width: 0 !important;
}

.wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.wp-block-button {
    display: inline-block !important;
}

/* Mobile responsive for WordPress blocks */
@media (max-width: 768px) {
    .wp-block-columns {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .wp-block-column {
        flex: 0 0 auto !important;
        text-align: center !important;
    }
    
    .wp-block-buttons.is-content-justification-right,
    .wp-block-buttons.is-content-justification-left {
        justify-content: center !important;
    }
    
    .wp-block-buttons {
        justify-content: center !important;
    }
    
    .wp-block-button {
        margin: 0 0.25rem !important;
    }
}

.games-section a {
    cursor: pointer !important;
}
.breadcrumb-item a {
	color: #000;
	text-decoration: unset !important;
}
@media only screen and (min-width: 320px) and (max-width: 786px) {
    .games-section .col-4 {
        padding: 0 5px;
    }

    .game-image img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }

    .game-image {
        width: 100%;
        height: auto;
        background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd23f, #06ffa5);
        position: relative;
        overflow: hidden;
    }

    .new-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background-color: #ef4444;
        color: #fff;
        font-size: 0.55rem;
        font-weight: bold;
        padding: 0.20rem 0.2rem;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .games-section .card-body {
        padding: 0 10px;
    }

    .game-title {
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #333;
        display: -webkit-box;
	  -webkit-line-clamp: 3;
	  -webkit-box-orient: vertical;
	  overflow: hidden;
	  text-overflow: ellipsis;
    }

    .game-category {
        font-size: 0.7rem;
        color: #666;
        margin-bottom: 0;
    }

    .d-info {
        display: block !important;
    }

    .download-button {
        font-size: 11px;
    }

    .download-button i {
        margin: 0 !important;
    }

    .game-rating {
        display: flex;
        align-items: center;
        gap: 0px;
        color: #fbbf24;
        font-size: 12px;
    }

    .d-info .text-muted {
        font-size: 12px;
        line-height: 1 !important;
    }

    .game-detail-hero .game-title {
        color: #dc2626 !important;
        font-size: 1.5rem;
        white-space: break-spaces;
        text-overflow: ellipsis;
        overflow: visible;
    }

    .game-detail-hero .col-md-3 {
        margin-bottom: 0;
    }

    .game-info {
        padding-top: 0;
    }
}
.hero-section {
  background: linear-gradient(135deg, #00ff41, #ffff00, #ff6b35);
  background-size: 300% 300%;
  animation: gradientMove 8s ease infinite;
  padding: 4rem 0;
  color: #333;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 10%;
  }
  50% {
    background-position: 100% 10%;
  }
  100% {
    background-position: 0% 10%;
  }
}
