/**
 * TechBid Core - Style CSS
 * 
 * SEKCJE:
 * 1. Kafelki dashboardu konta
 * 2. Tabela ACF dane
 * 3. Floating button kontaktowy
 * 4. Responsive
 */

/* ========================================================================
   SEKCJA 1: KAFELKI DASHBOARDU KONTA
   ======================================================================== */

.kafelki-konta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.kafelek-konto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.kafelek-konto:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.kafelek-konto .ikona {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.kafelek-konto .ikona img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kafelek-konto span {
    font-size: 14px;
    font-weight: 500;
}

/* ========================================================================
   SEKCJA 2: TABELA ACF DANE
   ======================================================================== */

.acf-dane-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acf-dane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.acf-dane-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.acf-dane-grid .acf-dane-item:nth-child(odd) {
    border-right: 1px solid #e0e0e0;
}

.acf-dane-item:last-child,
.acf-dane-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.acf-dane-label {
    flex: 0 0 160px;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    border-right: 1px solid #e0e0e0;
    background: #fff;
}

.acf-dane-value {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    color: #333;
    background: #fff;
}

.acf-dane-extra {
    border-top: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
}

.acf-dane-label-full {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 5px;
}

.acf-dane-value-full {
    font-size: 12px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========================================================================
   SEKCJA 3: FLOATING BUTTON KONTAKTOWY
   ======================================================================== */

.techbid-floating-btn,
#floating-contact-btn {
    position: fixed !important;
    bottom: 0 !important;
    left: 15px !important;
    background: #FF671F !important;
    color: white !important;
    padding: 12px 15px !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    box-shadow: 0 -4px 15px rgba(255, 107, 53, 0.3) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 12px 12px 0 0 !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 250px !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    white-space: nowrap !important;
    text-align: center !important;
}

#floating-contact-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #ff7a35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 -6px 20px rgba(255, 107, 53, 0.5) !important;
    color: white !important;
    text-decoration: none !important;
}

#floating-contact-btn .btn-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Stan ukryty */
#floating-contact-btn.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
}

/* ========================================================================
   SEKCJA 4: RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    /* Kafelki - 2 kolumny */
    .kafelki-konta {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .kafelek-konto {
        padding: 15px 10px;
    }
    
    .kafelek-konto .ikona {
        width: 40px;
        height: 40px;
    }
    
    .kafelek-konto span {
        font-size: 12px;
    }
    
    /* ACF - 1 kolumna */
    .acf-dane-grid {
        grid-template-columns: 1fr;
    }
    
    .acf-dane-grid .acf-dane-item,
    .acf-dane-grid .acf-dane-item:nth-child(odd) {
        border-right: none;
    }
    
    .acf-dane-item:nth-last-child(2):nth-child(odd) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Floating button */
    #floating-contact-btn {
        min-width: 180px !important;
        max-width: 220px !important;
        font-size: 12px !important;
        padding: 10px 16px !important;
        left: 10px !important;
    }
}

@media (max-width: 480px) {
    .kafelki-konta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #floating-contact-btn {
        min-width: 140px !important;
        max-width: 180px !important;
        font-size: 11px !important;
        padding: 8px 12px !important;
        left: 5px !important;
    }
}

@media (max-width: 360px) {
    #floating-contact-btn {
        min-width: 120px !important;
        max-width: 150px !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    #floating-contact-btn .btn-text {
        font-size: 10px !important;
    }
}
