/**
 * TikiTaka Navigation Styles
 * These styles are for the header and footer shortcodes
 */

/* ===== HEADER STYLES ===== */


.tkt-header {
     width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-top:-9px;
}

.tkt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.tkt-header-logo {
    display: flex;
    align-items: center;
}

.tkt-logo {
    max-height: 60px;
    width: auto;
}

.tkt-logo-text {
    font-family: var(--tkt-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tkt-primary);
    text-decoration: none;
}

/* Company Name - Center */
.tkt-header-company-name {
    display: none; /* Hidden by default, shown only on mobile */
    text-align: center;
}

.tkt-company-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tkt-lapangan-name {
    margin-left: 12px;
    font-size: 0.875rem;
    color: var(--tkt-text);
    position: relative;
    padding-left: 12px;
}

.tkt-lapangan-name:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: #ddd;
}

/* Search */
.tkt-header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 1.5rem;
}

.tkt-search-form {
    position: relative;
    display: flex;
}

.tkt-search-field {
    border: 1px solid #ddd;
    border-radius: var(--tkt-radius);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    width: 100%;
    font-family: var(--tkt-font);
}

.tkt-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    color: #666;
    height: 100%;
    width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Actions */
.tkt-header-actions {
    display: flex;
    align-items: center;
}

.tkt-header-notifications,
.tkt-header-profile {
    margin-left: 1rem;
    position: relative;
}

.tkt-btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--tkt-text);
    transition: all 0.2s;
}

.tkt-btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tkt-notification-count {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.75rem;
    background-color: var(--tkt-accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.tkt-badge {
    font-size: 0.625rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tkt-badge-owner {
    background-color: var(--tkt-accent);
    color: white;
}

.tkt-badge-pengelola {
    background-color: var(--tkt-secondary);
    color: white;
}

.tkt-badge-player {
    background-color: var(--tkt-primary);
    color: white;
}

/* Dropdown */
.tkt-dropdown {
    position: relative;
}

.tkt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--tkt-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.tkt-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tkt-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.tkt-dropdown-body {
    padding: 0.5rem 0;
}

.tkt-dropdown-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.tkt-user-info {
    display: flex;
    align-items: center;
}

.tkt-user-details {
    margin-left: 0.75rem;
}

.tkt-user-details h4 {
    margin: 0;
    font-size: 0.9rem;
}

.tkt-user-details p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

.tkt-dropdown-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tkt-dropdown-menu-items li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--tkt-text);
    text-decoration: none;
    transition: all 0.2s;
}

.tkt-dropdown-menu-items li a:hover {
    background-color: #f5f5f5;
    color: var(--tkt-primary);
}

.tkt-notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.tkt-notification-empty {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

/* Role-Specific Styles for Header */
.tkt-header.tkt-role-owner {
    border-top: 3px solid var(--tkt-accent);
}

.tkt-header.tkt-role-pengelola {
    border-top: 3px solid var(--tkt-secondary);
}

.tkt-header.tkt-role-player {
    border-top: 3px solid var(--tkt-primary);
}

/* ===== FOOTER STYLES ===== */
.tkt-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 3rem 0 1.5rem;
    margin-bottom: 60px; /* Space for bottom nav */
}

.tkt-footer-widgets {
    margin-bottom: 2rem;
}

.tkt-widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.tkt-widget-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--tkt-primary);
}

.tkt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tkt-footer-links li {
    margin-bottom: 0.5rem;
}

.tkt-footer-links a {
    color: var(--tkt-text);
    text-decoration: none;
    transition: all 0.2s;
}

.tkt-footer-links a:hover {
    color: var(--tkt-primary);
    padding-left: 5px;
}

.tkt-social-icons {
    display: flex;
    margin-top: 1rem;
}

.tkt-social-icon {
    width: 36px;
    height: 36px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: #666;
    transition: all 0.2s;
}

.tkt-social-icon:hover {
    background-color: var(--tkt-primary);
    color: white;
}

.tkt-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tkt-contact-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.tkt-contact-icon {
    margin-right: 0.75rem;
    color: var(--tkt-primary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tkt-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

/* Footer Column Layout */
.tkt-footer .tkt-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.tkt-footer .tkt-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .tkt-footer .tkt-col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Footer Bottom Navigation */
.tkt-footer-bottom-nav {
    background-color: #f1f1f1;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.tkt-footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.tkt-footer-nav-item {
    margin: 0.5rem 1rem;
}

.tkt-footer-nav-item a {
    color: var(--tkt-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tkt-footer-nav-item a:hover {
    color: var(--tkt-primary);
}

/* Footer Subscribe Form */
.tkt-subscribe-form {
    margin-top: 1.5rem;
}

.tkt-subscribe-input-group {
    display: flex;
}

.tkt-subscribe-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-top-left-radius: var(--tkt-radius);
    border-bottom-left-radius: var(--tkt-radius);
    font-family: var(--tkt-font);
}

.tkt-subscribe-btn {
    padding: 0.5rem 1rem;
    background-color: var(--tkt-primary);
    color: white;
    border: none;
    border-top-right-radius: var(--tkt-radius);
    border-bottom-right-radius: var(--tkt-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.tkt-subscribe-btn:hover {
    background-color: var(--tkt-primary-dark);
}

/* Footer Logo */
.tkt-footer-logo {
    margin-bottom: 1.5rem;
}

.tkt-footer-logo img {
    max-height: 60px;
    width: auto;
}

.tkt-footer-description {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Additional Mobile Styles for Footer */
@media (max-width: 767px) {
    .tkt-footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .tkt-widget-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tkt-social-icons {
        justify-content: center;
    }
    
    .tkt-contact-item {
        justify-content: center;
    }
    
    .tkt-footer-nav {
        flex-direction: column;
    }
    
    .tkt-footer-nav-item {
        margin: 0.25rem 0;
    }
    
    .tkt-subscribe-input-group {
        flex-direction: column;
    }
    
    .tkt-subscribe-input {
        border-right: 1px solid #ddd;
        border-bottom: none;
        border-radius: var(--tkt-radius) var(--tkt-radius) 0 0;
        margin-bottom: 0;
    }
    
    .tkt-subscribe-btn {
        border-radius: 0 0 var(--tkt-radius) var(--tkt-radius);
    }
}

/* Role-Specific Styles for Footer */
.tkt-footer.tkt-role-owner {
    border-top: 3px solid var(--tkt-accent);
}

.tkt-footer.tkt-role-pengelola {
    border-top: 3px solid var(--tkt-secondary);
}

.tkt-footer.tkt-role-player {
    border-top: 3px solid var(--tkt-primary);
}

/* ===== BOTTOM NAVIGATION ===== */
.tkt-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--tkt-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.tkt-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.tkt-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: var(--tkt-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.tkt-bottom-nav-item.active {
    color: var(--tkt-accent);
}

.tkt-bottom-nav-item span {
    margin-top: 0.25rem;
}

/* Role-Specific Styles for Bottom Nav */
.tkt-bottom-nav.tkt-role-owner {
    border-top: 2px solid var(--tkt-accent);
}

.tkt-bottom-nav.tkt-role-owner .tkt-bottom-nav-item.active {
    color: var(--tkt-accent);
}

.tkt-bottom-nav.tkt-role-pengelola {
    border-top: 2px solid var(--tkt-secondary);
}

.tkt-bottom-nav.tkt-role-pengelola .tkt-bottom-nav-item.active {
    color: var(--tkt-secondary);
}

.tkt-bottom-nav.tkt-role-player {
    border-top: 2px solid var(--tkt-primary);
}

.tkt-bottom-nav.tkt-role-player .tkt-bottom-nav-item.active {
    color: var(--tkt-primary);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
    .tkt-header-search {
        order: 3;
        max-width: 100%;
        margin: 1rem 0 0;
        flex-basis: 100%;
    }
    
    .tkt-hide-mobile {
        display: none;
    }
}

/* Mobile view specific styles - move all navigation to bottom and update mobile header layout */
@media (max-width: 767px) {
    /* Mobile header layout: logo - company name - notification */
    
    .tkt-header {
        border-radius: 0px 0px 12px 12px;
        
    }
    .tkt-header-inner {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    
    
    /* Logo section takes less space */
    .tkt-header-logo {
        flex: 0 0 auto;
        margin-right: 0;
    }
    
    .tkt-logo {
        max-height: 50px;
    }
    
    /* Company name visible and centered on mobile */
    .tkt-header-company-name {
        display: block;
        flex: 1;
        text-align: center;
    }
    
    .tkt-company-title {
        margin: 0;
        font-size: 1.5rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide search completely on mobile */
    .tkt-header-search {
        display: none !important;
    }
    
    /* Only show notification on mobile, hide profile */
    .tkt-header-profile {
        display: none;
    }
    
    /* Make bottom nav more prominent and include all navigation */
    .tkt-bottom-nav {
        padding: 16px 0;
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
    }
    
    /* Adjust spacing for 5 icons in bottom nav */
    .tkt-bottom-nav-container {
        padding: 0 10px;
    }
    
    .tkt-bottom-nav-item {
        padding: 8px 5px;
        font-size: 0.7rem;
    }
    
    /* Show bottom nav for all users including guests */
    .tkt-bottom-nav {
        display: block !important;
    }
    
    
    /* Reduce header padding on mobile */
    .tkt-header {
        padding: 1rem 0;
    }
    
    /* Ensure notifications icon is properly aligned */
    .tkt-header-actions {
        flex: 0 0 auto;
    }
    
    /* Adjust footer for mobile */
    .tkt-footer {
        padding: 2rem 0 1rem;
    }
    
    .tkt-widget-title {
        margin-top: 1.5rem;
    }
    
    .tkt-footer-widget:first-child .tkt-widget-title {
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    /* Additional mobile tweaks for very small screens */
    .tkt-company-title {
        font-size: 0.9rem;
    }
    
    .tkt-bottom-nav-item {
        font-size: 0.65rem;
    }
    
    .tkt-bottom-nav-item svg {
        width: 28px;
        height: 28px;
    }
    
    nav.tkt-bottom-nav.tkt-role-player
 {
    border-radius: 12px 12px 0px 0px;
}
    
    /* Reduce social icons size on mobile */
    .tkt-social-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Make copyright text smaller */
    .tkt-copyright {
        font-size: 0.75rem;
    }
}