/* Core CSS for kkk ph link website */
/* All classes use sffe- prefix for namespace isolation */

/* CSS Variables - Pink/Purple Theme */
:root {
    --sffe-primary: #FFB6C1; /* Light Pink */
    --sffe-secondary: #8A2BE2; /* Blue Violet */
    --sffe-bg: #1C2833; /* Dark Blue */
    --sffe-text: #FFFFFF;
    --sffe-text-secondary: #BDC3C7;
    --sffe-accent: #FF69B4; /* Hot Pink */
    --sffe-gradient: linear-gradient(135deg, #FFB6C1 0%, #8A2BE2 100%);
    --sffe-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    --sffe-radius: 12px;
    --sffe-transition: all 0.3s ease;
}

/* Reset and 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--sffe-bg);
    color: var(--sffe-text);
    overflow-x: hidden;
    max-width: 100%;
}

/* Container */
.sffe-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sffe-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem;
}

/* Header and Navigation */
.sffe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.sffe-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    height: 6rem;
}

.sffe-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--sffe-text);
    font-weight: 700;
    font-size: 1.8rem;
}

.sffe-logo img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.sffe-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sffe-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--sffe-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sffe-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    min-width: 8rem;
}

.sffe-btn-primary {
    background: var(--sffe-gradient);
    color: var(--sffe-text);
    box-shadow: var(--sffe-shadow);
}

.sffe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.4);
}

.sffe-btn-secondary {
    background: transparent;
    color: var(--sffe-primary);
    border: 2px solid var(--sffe-primary);
}

.sffe-btn-secondary:hover {
    background: var(--sffe-primary);
    color: var(--sffe-bg);
}

.sffe-menu-btn {
    background: none;
    border: none;
    color: var(--sffe-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
}

/* Mobile Menu */
.sffe-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--sffe-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sffe-mobile-menu.active {
    right: 0;
}

.sffe-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--sffe-transition);
}

.sffe-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sffe-menu-list {
    list-style: none;
    margin-top: 3rem;
}

.sffe-menu-list li {
    margin-bottom: 1.5rem;
}

.sffe-menu-list a {
    color: var(--sffe-text);
    text-decoration: none;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--sffe-radius);
    transition: var(--sffe-transition);
}

.sffe-menu-list a:hover,
.sffe-menu-list a.active {
    background: rgba(255, 182, 193, 0.1);
    color: var(--sffe-primary);
}

/* Main Content */
.sffe-main {
    padding-top: 6rem;
    min-height: 100vh;
}

/* Carousel */
.sffe-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--sffe-radius);
    margin-bottom: 2rem;
    box-shadow: var(--sffe-shadow);
}

.sffe-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.sffe-slide.active {
    display: block;
}

.sffe-slide img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.sffe-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.sffe-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--sffe-transition);
}

.sffe-indicator.active {
    background: var(--sffe-primary);
    width: 2rem;
    border-radius: 1rem;
}

/* Typography */
.sffe-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--sffe-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sffe-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--sffe-primary);
}

.sffe-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--sffe-secondary);
}

.sffe-text {
    color: var(--sffe-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Game Grid */
.sffe-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sffe-game-card {
    background: rgba(255, 182, 193, 0.1);
    border-radius: var(--sffe-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--sffe-transition);
    border: 1px solid transparent;
}

.sffe-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--sffe-primary);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
}

.sffe-game-icon {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 0.8rem;
}

.sffe-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sffe-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sections */
.sffe-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 182, 193, 0.05);
    border-radius: var(--sffe-radius);
    border: 1px solid rgba(255, 182, 193, 0.1);
}

.sffe-promo-link {
    color: var(--sffe-accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--sffe-transition);
}

.sffe-promo-link:hover {
    color: var(--sffe-primary);
    text-decoration: underline;
}

.sffe-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--sffe-gradient);
    color: var(--sffe-text);
    text-decoration: none;
    border-radius: var(--sffe-radius);
    font-weight: 600;
    transition: var(--sffe-transition);
    margin: 0.5rem;
}

.sffe-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

/* Bottom Navigation */
.sffe-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--sffe-bg);
    border-top: 1px solid rgba(255, 182, 193, 0.2);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
}

.sffe-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sffe-text-secondary);
    min-width: 6rem;
    min-height: 5rem;
    transition: var(--sffe-transition);
    border-radius: 1rem;
}

.sffe-nav-item:hover,
.sffe-nav-item.active {
    color: var(--sffe-primary);
    background: rgba(255, 182, 193, 0.1);
}

.sffe-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.sffe-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.sffe-footer {
    background: rgba(28, 40, 51, 0.8);
    padding: 2rem 0;
    margin-bottom: 6rem;
}

.sffe-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sffe-partner-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--sffe-transition);
}

.sffe-partner-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.sffe-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.sffe-footer-links a {
    color: var(--sffe-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--sffe-transition);
}

.sffe-footer-links a:hover {
    color: var(--sffe-primary);
}

.sffe-copyright {
    text-align: center;
    color: var(--sffe-text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (min-width: 769px) {
    .sffe-bottom-nav {
        display: none;
    }

    .sffe-wrapper {
        padding-bottom: 0;
    }

    .sffe-footer {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sffe-main {
        padding-bottom: 8rem;
    }
}

/* Utility Classes */
.sffe-text-center {
    text-align: center;
}

.sffe-mb-1 {
    margin-bottom: 1rem;
}

.sffe-mb-2 {
    margin-bottom: 2rem;
}

.sffe-mt-1 {
    margin-top: 1rem;
}

.sffe-mt-2 {
    margin-top: 2rem;
}

.sffe-hidden {
    display: none;
}

.sffe-flex {
    display: flex;
}

.sffe-grid {
    display: grid;
}

.sffe-items-center {
    align-items: center;
}

.sffe-justify-center {
    justify-content: center;
}

.sffe-gap-1 {
    gap: 1rem;
}

.sffe-gap-2 {
    gap: 2rem;
}