/* Basecoat Component System for BESTEK */

/* ==================== CARD COMPONENTS ==================== */
.card {
    background: rgba(255, 250, 239, 0.7);
    border: 3px solid #000;
    border-radius: 12px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
    .card {
        background: rgba(255, 250, 239, 0.7);
        box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(16px);
        color: #000;
    }
    
    .card * {
        color: #000;
    }
    
    .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
        color: #000;
    }
    
    .card p, .card span, .card div {
        color: #000;
    }
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 3px solid #000;
}

.card-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
    color: #000;
}

.card-description {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.75;
    font-family: 'Courier New', monospace;
    color: #000;
}

.card-content {
    padding: 2rem;
}

.card-footer {
    padding: 1rem 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

/* ==================== ALERT COMPONENTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border: 3px solid #000;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.alert-primary {
    background: rgba(255, 245, 110, 0.7);
    border-color: #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .alert-primary {
        background: rgba(255, 245, 110, 0.7);
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    }
}

.alert-secondary {
    background: #dcd3cc;
    border-color: #000;
}

.alert-info {
    background: rgba(255, 250, 239, 0.95);
    border-color: #000;
}

.alert-title {
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

.alert-description {
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: #000;
}

/* ==================== BUTTON COMPONENTS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    min-height: 44px; /* Mobile tap target */
}

.btn-primary {
    background: #000;
    color: #fff56e;
}

.btn-primary:hover {
    background: #fff56e;
    color: #000;
}

.btn-secondary {
    background: #fff56e;
    color: #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff56e;
}

.btn-ghost {
    background: transparent;
    border-color: #000;
    color: #000;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-link {
    background: transparent;
    border: none;
    color: #000;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: #666;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
}

.btn-full {
    width: 100%;
}

/* ==================== BADGE COMPONENTS ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #000;
    border-radius: 9999px;
    font-family: 'Courier New', monospace;
}

.badge-primary {
    background: #fff56e;
    color: #000;
}

.badge-secondary {
    background: #dcd3cc;
    color: #000;
}

.badge-outline {
    background: transparent;
    border-color: #000;
    color: #000;
}

/* ==================== SIDEBAR COMPONENTS ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: rgba(255, 250, 239, 0.98);
    border-right: 3px solid #000;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-item {
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background: #fff56e;
    transform: translateX(4px);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== TABS COMPONENTS ==================== */
.tabs {
    display: flex;
    border-bottom: 3px solid #000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.tab:hover {
    background: rgba(255, 245, 110, 0.2);
}

.tab.active {
    border-bottom-color: #000;
    background: rgba(255, 245, 110, 0.3);
}

/* ==================== UTILITY CLASSES ==================== */
.polaroid {
    background: #fff;
    padding: 12px 12px 40px 12px;
    border: 2px solid #000;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    display: inline-block;
}

.annotation {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    pointer-events: none;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 767px) {
    .mobile-hidden {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .desktop-hidden {
        display: none !important;
    }
}

