/* tbjili Stylesheet */
/* Prefix: s180- */

/* CSS Variables */
:root {
    --s180-primary: #1A1A1A;
    --s180-secondary: #CD853F;
    --s180-accent: #FAF0E6;
    --s180-background: #FAF0E6;
    --s180-text: #1A1A1A;
    --s180-text-light: #E0E0E0;
    --s180-border: #CD853F;
    --s180-shadow: rgba(0, 0, 0, 0.1);
    --s180-transition: all 0.3s ease;
    --s180-mobile-height: 56px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--s180-background);
    color: var(--s180-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container and Layout */
.s180-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.s180-wrapper {
    width: 100%;
    overflow: hidden;
}

.s180-grid {
    display: grid;
    gap: 15px;
}

.s180-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.s180-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.s180-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.s180-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s180-primary);
    color: var(--s180-accent);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--s180-shadow);
}

.s180-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    height: 60px;
}

.s180-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: bold;
}

.s180-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.s180-nav-buttons {
    display: flex;
    gap: 10px;
}

.s180-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--s180-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.s180-btn-primary {
    background-color: var(--s180-secondary);
    color: var(--s180-primary);
}

.s180-btn-primary:hover {
    background-color: #B8860B;
    transform: translateY(-2px);
}

.s180-btn-secondary {
    background-color: transparent;
    color: var(--s180-accent);
    border: 1px solid var(--s180-border);
}

.s180-btn-secondary:hover {
    background-color: var(--s180-secondary);
    color: var(--s180-primary);
}

/* Mobile Menu Toggle */
.s180-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.s180-menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.s180-menu-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--s180-accent);
    transition: var(--s180-transition);
    border-radius: 2px;
}

.s180-menu-line:nth-child(1) {
    top: 3px;
}

.s180-menu-line:nth-child(2) {
    top: 10px;
}

.s180-menu-line:nth-child(3) {
    top: 17px;
}

/* Mobile Menu */
.s180-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--s180-primary);
    box-shadow: 0 4px 20px var(--s180-shadow);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.s180-mobile-menu.active {
    transform: translateX(0);
}

.s180-menu-items {
    list-style: none;
    padding: 10px 0;
}

.s180-menu-item {
    border-bottom: 1px solid var(--s180-border);
}

.s180-menu-link {
    display: block;
    padding: 15px 20px;
    color: var(--s180-accent);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--s180-transition);
    position: relative;
}

.s180-menu-link:hover {
    background-color: var(--s180-secondary);
    color: var(--s180-primary);
    padding-left: 25px;
}

.s180-menu-link::before {
    content: '▶';
    position: absolute;
    left: 10px;
    transition: var(--s180-transition);
}

.s180-menu-link:hover::before {
    transform: translateX(5px);
}

/* Main Content */
main {
    flex: 1;
    padding-top: 60px;
    padding-bottom: 80px;
}

.s180-main-content {
    padding: 15px 0;
}

/* Carousel Styles */
.s180-carousel {
    position: relative;
    background-color: var(--s180-primary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--s180-shadow);
}

.s180-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.s180-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s180-carousel-item.active {
    opacity: 1;
}

.s180-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s180-carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s180-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s180-transition);
}

.s180-carousel-dot.active {
    background-color: var(--s180-secondary);
    transform: scale(1.2);
}

/* Game Grid Styles */
.s180-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.s180-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--s180-transition);
    padding: 8px;
}

.s180-game-item:hover {
    transform: scale(1.05);
}

.s180-game-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 6px;
    background-color: var(--s180-primary);
    padding: 5px;
}

.s180-game-name {
    font-size: 1rem;
    color: var(--s180-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* Section Styles */
.s180-section {
    margin-bottom: 30px;
}

.s180-section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s180-secondary);
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s180-section-content {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Card Styles */
.s180-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--s180-shadow);
    margin-bottom: 15px;
    transition: var(--s180-transition);
}

.s180-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--s180-shadow);
}

.s180-card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--s180-secondary);
    margin-bottom: 10px;
}

.s180-card-content {
    font-size: 1.4rem;
    color: var(--s180-text);
}

/* Button Styles */
.s180-btn-promo {
    background: linear-gradient(135deg, var(--s180-secondary), #B8860B);
    color: var(--s180-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.s180-btn-promo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.s180-btn-promo:hover::before {
    width: 300px;
    height: 300px;
}

.s180-btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* Feature List */
.s180-feature-list {
    list-style: none;
    padding: 0;
}

.s180-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.s180-feature-icon {
    color: var(--s180-secondary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.s180-feature-text {
    flex: 1;
    line-height: 1.5;
}

/* Bottom Navigation */
.s180-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--s180-primary);
    box-shadow: 0 -2px 10px var(--s180-shadow);
    z-index: 1000;
    height: 64px;
}

.s180-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.s180-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    color: var(--s180-accent);
    text-decoration: none;
    transition: var(--s180-transition);
    cursor: pointer;
}

.s180-nav-button:hover {
    color: var(--s180-secondary);
    transform: scale(1.1);
}

.s180-nav-button.active {
    color: var(--s180-secondary);
}

.s180-nav-icon {
    font-size: 24px;
}

.s180-nav-text {
    font-size: 1rem;
}

/* Footer */
.s180-footer {
    background-color: var(--s180-primary);
    color: var(--s180-accent);
    padding: 40px 0 20px;
    margin-top: auto;
}

.s180-footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.s180-footer-section {
    text-align: center;
}

.s180-footer-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--s180-secondary);
}

.s180-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.s180-footer-link {
    color: var(--s180-accent);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--s180-transition);
}

.s180-footer-link:hover {
    color: var(--s180-secondary);
    text-decoration: underline;
}

.s180-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.s180-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--s180-transition);
}

.s180-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.s180-copyright {
    font-size: 1rem;
    text-align: center;
    opacity: 0.7;
    border-top: 1px solid var(--s180-border);
    padding-top: 15px;
    margin-top: 15px;
}

/* Utility Classes */
.s180-hidden {
    display: none !important;
}

.s180-block {
    display: block !important;
}

.s180-text-center {
    text-align: center;
}

.s180-text-bold {
    font-weight: bold;
}

.s180-mt-10 {
    margin-top: 10px;
}

.s180-mb-10 {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .s180-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s180-animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Icon Mixin - Different icon libraries */
/* Font Awesome Icons */
.fas { font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.far { font-family: 'Font Awesome 6 Free'; font-weight: 400; }
.fad { font-family: 'Font Awesome 6 Pro'; font-weight: 900; opacity: 0.9; }

/* Material Icons */
.material-icons { font-family: 'Material Symbols Outlined'; }

/* Ionicons */
.ionicon { font-family: 'Ionicons'; }

/* Bootstrap Icons */
.bi { font-family: 'Bootstrap Icons'; }

/* Tabler Icons */
.tabler { font-family: 'Tabler Icons'; }

/* RTP Analysis Styles */
.s180-rtp-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.s180-stat-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--s180-background);
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.s180-stat-title {
    font-size: 0.9rem;
    color: var(--s180-text);
    margin: 0;
}

.s180-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s180-secondary);
    margin: 0;
}

/* RTP Table Styles */
.s180-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.s180-rtp-header {
    display: flex;
    background-color: var(--s180-primary);
    color: var(--s180-accent);
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    padding: 10px 5px;
}

.s180-rtp-col-game {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s180-rtp-col-rtp {
    flex: 1;
    text-align: center;
}

.s180-rtp-col-jackpot {
    flex: 1.5;
    text-align: center;
}

.s180-rtp-col-hit {
    flex: 1;
    text-align: center;
}

.s180-rtp-col-vol {
    flex: 1;
    text-align: center;
}

.s180-rtp-row {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(205, 133, 63, 0.1);
    transition: var(--s180-transition);
    cursor: pointer;
}

.s180-rtp-row:hover {
    background-color: rgba(205, 133, 63, 0.05);
}

.s180-rtp-game-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.s180-rtp-high {
    color: var(--s180-secondary);
    font-weight: bold;
}

.s180-rtp-medium {
    color: #28a745;
    font-weight: bold;
}

.s180-rtp-low {
    color: #dc3545;
    font-weight: bold;
}

/* Chart Styles */
.s180-chart-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.s180-chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.s180-chart-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: inherit;
    opacity: 0.2;
    transition: width 0.3s ease;
}

.s180-chart-bar:hover::before {
    width: 100%;
}

.s180-chart-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.s180-chart-value {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: right;
}

.s180-chart-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--s180-text);
    opacity: 0.8;
}

/* Tips Styles */
.s180-tip-card {
    text-align: center;
    padding: 15px;
    background-color: var(--s180-background);
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.1);
    transition: var(--s180-transition);
}

.s180-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.2);
}

.s180-tip-card .s180-feature-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.s180-tip-card .s180-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.s180-tip-card .s180-card-content {
    font-size: 0.9rem;
    line-height: 1.4;
}