/**
 * @package     Joomla.Site
 * @subpackage  Templates.vegastower
 * @copyright   Copyright (C) 2017-2025 Vegas Tower Slot. All rights reserved.
 * @license     GNU General Public License version 2 or later
 * @created     2025-07-28
 */

/* --- CSS Variables --- */
:root {
    --vt-bg-dark: #0d0d20;
    --vt-bg-darker: #06061a;
    --vt-bg-card: #151535;
    --vt-purple: #8b31d9;
    --vt-purple-light: #a855f7;
    --vt-purple-dark: #5b21b6;
    --vt-gold: #facc15;
    --vt-gold-dark: #ca8a04;
    --vt-gold-light: #fde047;
    --vt-text: #ffffff;
    --vt-text-muted: #94a3b8;
    --vt-green: #22c55e;
    --vt-red: #ef4444;
    --vt-gradient: linear-gradient(135deg, #8b31d9 0%, #4c1d95 50%, #2e1065 100%);
    --vt-gradient-gold: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--vt-bg-dark);
    color: var(--vt-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--vt-gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--vt-purple-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* --- Header --- */
.t3-header {
    background: linear-gradient(180deg, var(--vt-bg-darker) 0%, transparent 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.t3-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-module {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-module img {
    height: 50px;
    width: auto;
}

.logo-module span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--vt-gold), var(--vt-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mod-menu {
    display: flex;
    gap: 25px;
}

.mod-menu a {
    color: var(--vt-text-muted);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.mod-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vt-gold);
    transition: width 0.3s;
}

.mod-menu a:hover,
.mod-menu a.active {
    color: var(--vt-gold);
}

.mod-menu a:hover::after,
.mod-menu a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.mod-hero {
    background: var(--vt-gradient);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mod-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 49, 217, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.mod-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(250,204,21,0.15)"/></svg>') repeat;
    background-size: 60px 60px;
    animation: starsMove 40s linear infinite;
}

@keyframes starsMove {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(10deg); }
}

.mod-hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--vt-gradient-gold);
    color: #000;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 25px;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(250, 204, 21, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(250, 204, 21, 0.8); }
}

.mod-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(250, 204, 21, 0.5), 0 4px 20px rgba(0,0,0,0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #facc15 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 20px rgba(250, 204, 21, 0.3), 0 4px 20px rgba(0,0,0,0.5);
        filter: brightness(1);
    }
    100% { 
        text-shadow: 0 0 60px rgba(250, 204, 21, 0.8), 0 4px 30px rgba(0,0,0,0.5);
        filter: brightness(1.1);
    }
}

.mod-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: var(--vt-gradient-gold);
    color: #000;
    box-shadow: 0 5px 25px rgba(250, 204, 21, 0.4);
}

.btn-gold:hover {
    background: var(--vt-gold-light);
    color: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(250, 204, 21, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--vt-gold);
    color: var(--vt-gold);
}

.btn-outline:hover {
    background: var(--vt-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.btn-purple {
    background: linear-gradient(135deg, var(--vt-purple) 0%, var(--vt-purple-dark) 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 49, 217, 0.4);
}

.btn-purple:hover {
    background: linear-gradient(135deg, var(--vt-purple-light) 0%, var(--vt-purple) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 49, 217, 0.5);
}

/* --- Games Grid --- */
.games-section {
    padding: 80px 0;
    background: var(--vt-bg-darker);
}

.games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--vt-gold);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.game-card {
    background: var(--vt-bg-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 49, 217, 0.2);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vt-gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(139, 49, 217, 0.3), 0 0 0 1px rgba(250, 204, 21, 0.3);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--vt-green);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.game-card-content {
    padding: 25px;
}

.game-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--vt-text);
    transition: color 0.3s;
}

.game-card:hover .game-card-content h3 {
    color: var(--vt-gold);
}

.game-card-content p {
    color: var(--vt-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.game-card-meta span {
    color: var(--vt-text-muted);
    font-size: 0.9rem;
}

.game-card-meta .rating {
    color: var(--vt-gold);
}

/* --- Features Section --- */
.mod-features {
    padding: 100px 0;
    background: var(--vt-bg-dark);
    position: relative;
}

.mod-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vt-purple), transparent);
}

.mod-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--vt-gold);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-item {
    background: linear-gradient(135deg, var(--vt-bg-card) 0%, rgba(139, 49, 217, 0.1) 100%);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(139, 49, 217, 0.15);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vt-gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-item:hover {
    border-color: var(--vt-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 49, 217, 0.2);
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--vt-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(139, 49, 217, 0.3);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(139, 49, 217, 0.5);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--vt-text);
    transition: color 0.3s;
}

.feature-item:hover h3 {
    color: var(--vt-gold);
}

.feature-item p {
    color: var(--vt-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Screenshots Gallery --- */
.mod-gallery {
    padding: 80px 0;
    background: var(--vt-bg-darker);
}

.mod-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--vt-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 2px solid rgba(123,44,191,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Game Detail Page --- */
.game-layout {
    padding: 120px 0 80px;
}

.game-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

.game-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.game-sidebar img {
    width: 100%;
    border: 3px solid var(--vt-purple);
}

.game-content h1 {
    font-size: 2.5rem;
    color: var(--vt-gold);
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--vt-text-muted);
}

.game-meta .stars {
    color: var(--vt-gold);
}

/* --- Download Buttons --- */
.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn.aptoide {
    background: #a4c639;
    color: #000;
}

.download-btn.aptoide:hover {
    background: #8ab52b;
}

.download-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.download-btn.facebook:hover {
    background: #0d65d9;
}

/* --- Info Box --- */
.info-box {
    background: var(--vt-bg-card);
    padding: 25px;
    border-left: 4px solid var(--vt-purple);
    margin: 20px 0;
}

.info-box h4 {
    color: var(--vt-gold);
    margin-bottom: 15px;
}

/* --- Specs Table --- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.specs-table td:first-child {
    color: var(--vt-text-muted);
    width: 40%;
}

/* --- Content Blocks --- */
.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 1.8rem;
    color: var(--vt-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vt-purple);
}

.content-block h3 {
    font-size: 1.3rem;
    color: var(--vt-purple-light);
    margin: 25px 0 15px;
}

.content-block p {
    color: var(--vt-text-muted);
    margin-bottom: 15px;
}

.content-block ul {
    list-style: none;
    margin: 15px 0;
}

.content-block ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--vt-text-muted);
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--vt-purple);
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    background: var(--vt-bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--vt-gold);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--vt-text-muted);
    margin-bottom: 20px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 300px;
    border: 5px solid var(--vt-purple);
}

/* --- FAQ Section --- */
.faq-item {
    background: var(--vt-bg-card);
    margin-bottom: 15px;
    border: 1px solid rgba(123,44,191,0.2);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--vt-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--vt-text-muted);
}

/* --- Footer --- */
.t3-footer {
    background: var(--vt-bg-darker);
    padding: 60px 0 0;
    border-top: 1px solid rgba(123,44,191,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--vt-text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--vt-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--vt-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--vt-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--vt-text-muted);
    font-size: 0.9rem;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.lang-switcher a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--vt-bg-card);
    border: 1px solid rgba(123,44,191,0.3);
    color: var(--vt-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.lang-switcher a:hover {
    border-color: var(--vt-gold);
    color: var(--vt-gold);
}

.lang-switcher a.active {
    background: var(--vt-purple);
    border-color: var(--vt-purple);
    color: #fff;
}

/* --- Reviews --- */
.reviews-section {
    margin: 40px 0;
}

.review-item {
    background: var(--vt-bg-card);
    border-left: 3px solid var(--vt-purple);
    padding: 20px 25px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: var(--vt-gold);
}

.review-date {
    color: var(--vt-text-muted);
    font-size: 0.9rem;
}

.review-stars {
    color: var(--vt-gold);
    margin-bottom: 10px;
}

.review-text {
    color: var(--vt-text-muted);
    line-height: 1.6;
}

.review-source {
    color: var(--vt-purple-light);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .game-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .t3-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .mod-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .mod-hero {
        padding: 120px 0 60px;
    }
    
    .mod-hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .lang-switcher {
        justify-content: center;
    }
}

/* End of template styles */

/* Header Language Switcher */
.header-lang {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.header-lang a {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.header-lang a:hover {
    color: var(--vt-gold);
    background: rgba(250,204,21,0.15);
}

.header-lang a.active {
    background: var(--vt-purple);
    color: #fff;
}

@media (max-width: 768px) {
    .header-lang {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
    }
}
