/**
 * Tikitaka Base Styles
 * Menggunakan CSS variables dari dynamic variables
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body.tikitaka-page {
    font-family: var(--tkt-font);
    color: var(--tkt-text);
    line-height: 1.5;
    background-color: var(--tkt-bg);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tkt-font-heading);
    margin-bottom: var(--tkt-sp-3);
    font-weight: 600;
    line-height: 1.2;
    color: var(--tkt-text);
}

/* ===== LAYOUT ===== */
.tkt-container {
    width: 100%;
    padding-right: var(--tkt-sp-3);
    padding-left: var(--tkt-sp-3);
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.tkt-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--tkt-sp-3) * -1);
    margin-left: calc(var(--tkt-sp-3) * -1);
}

.tkt-col {
    position: relative;
    width: 100%;
    padding-right: var(--tkt-sp-3);
    padding-left: var(--tkt-sp-3);
}

/* ===== BUTTONS ===== */
.tkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tkt-sp-2) var(--tkt-sp-3);
    border-radius: var(--tkt-radius);
    font-family: var(--tkt-font);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.tkt-btn-primary {
    background-color: var(--tkt-primary);
    color: white;
}

.tkt-btn-primary:hover {
    background-color: var(--tkt-primary-dark);
}

.tkt-btn-secondary {
    background-color: var(--tkt-secondary);
    color: white;
}

.tkt-btn-accent {
    background-color: var(--tkt-accent);
    color: white;
}

/* ===== CARDS ===== */
.tkt-card {
    background-color: white;
    border-radius: var(--tkt-radius);
    padding: var(--tkt-sp-3);
    margin-bottom: var(--tkt-sp-3);
    box-shadow: var(--tkt-shadow);
    border: var(--tkt-border);
}

.tkt-card-header {
    margin-bottom: var(--tkt-sp-3);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: var(--tkt-sp-2);
}

/* ===== FORMS ===== */
.tkt-form-control {
    display: block;
    width: 100%;
    padding: var(--tkt-sp-2);
    border-radius: var(--tkt-radius);
    border: 1px solid #ced4da;
    font-family: var(--tkt-font);
    margin-bottom: var(--tkt-sp-3);
}

.tkt-form-label {
    display: block;
    margin-bottom: var(--tkt-sp-1);
    font-weight: 500;
}

/* ===== NAVIGATION ===== */
.tkt-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tkt-nav-item {
    margin-right: var(--tkt-sp-3);
}

.tkt-nav-link {
    color: var(--tkt-text);
    text-decoration: none;
    padding: var(--tkt-sp-2) 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tkt-nav-link:hover,
.tkt-nav-link.active {
    color: var(--tkt-primary);
    border-bottom-color: var(--tkt-primary);
}

/* ===== UTILITIES ===== */
.tkt-text-primary { color: var(--tkt-primary); }
.tkt-text-secondary { color: var(--tkt-secondary); }
.tkt-text-accent { color: var(--tkt-accent); }

.tkt-bg-primary { background-color: var(--tkt-primary); color: white; }
.tkt-bg-secondary { background-color: var(--tkt-secondary); color: white; }
.tkt-bg-accent { background-color: var(--tkt-accent); color: white; }
.tkt-bg-light { background-color: #f8f9fa; }

.tkt-my-1 { margin-top: var(--tkt-sp-1); margin-bottom: var(--tkt-sp-1); }
.tkt-my-2 { margin-top: var(--tkt-sp-2); margin-bottom: var(--tkt-sp-2); }
.tkt-my-3 { margin-top: var(--tkt-sp-3); margin-bottom: var(--tkt-sp-3); }
.tkt-my-4 { margin-top: var(--tkt-sp-4); margin-bottom: var(--tkt-sp-4); }
.tkt-my-5 { margin-top: var(--tkt-sp-5); margin-bottom: var(--tkt-sp-5); }

.tkt-py-1 { padding-top: var(--tkt-sp-1); padding-bottom: var(--tkt-sp-1); }
.tkt-py-2 { padding-top: var(--tkt-sp-2); padding-bottom: var(--tkt-sp-2); }
.tkt-py-3 { padding-top: var(--tkt-sp-3); padding-bottom: var(--tkt-sp-3); }
.tkt-py-4 { padding-top: var(--tkt-sp-4); padding-bottom: var(--tkt-sp-4); }
.tkt-py-5 { padding-top: var(--tkt-sp-5); padding-bottom: var(--tkt-sp-5); }

/* ===== LAPANGAN STYLES ===== */
.tkt-lapangan-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--tkt-radius);
}

.tkt-lapangan-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tkt-lapangan-info {
    padding: var(--tkt-sp-3);
}

/* ===== CLUB STYLES ===== */
.tkt-club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tkt-primary);
}

/* ===== SQUAD STYLES ===== */
.tkt-squad-field {
    width: 100%;
    padding-bottom: 133%; /* Aspect ratio */
    background-color: #7ab969;
    background-image: linear-gradient(#7ab969, #69a649);
    position: relative;
    border-radius: var(--tkt-radius);
    margin-bottom: var(--tkt-sp-4);
}

.tkt-player {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--tkt-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 576px) {
    .tkt-container {
        max-width: 540px;
    }
    .tkt-col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .tkt-container {
        max-width: 720px;
    }
    .tkt-col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .tkt-container {
        max-width: 960px;
    }
    .tkt-col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    .tkt-container {
        max-width: 1140px;
    }
}