/**
 * Tools-specific CSS
 * 
 * Estilos específicos para as ferramentas de cálculo do Habituz.
 * Migrado de CSS inline para arquivo separado.
 * 
 * @package Habituz
 * @since 2.1.0
 */

/* =====================================================
   TOOL TABS NAVIGATION (Global Budget, etc.)
   ===================================================== */

.tool-tabs-nav {
    background: #f1f3f5;
    padding: 6px;
    border-radius: var(--radius-lg);
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.tool-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tool-tabs-nav .nav-link {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    white-space: nowrap;
    border: none;
    background: transparent;
}

.tool-tabs-nav .nav-link.active {
    background-color: white !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   ROOM ROW ITEMS (Global Budget)
   ===================================================== */

.room-row-item {
    background-color: #f8f9fa;
    border: 1px solid #eaedf0;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.room-row-item:hover {
    background-color: white;
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   SIZE BUTTONS (Small/Medium/Large)
   ===================================================== */

.btn-hab-size {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    border: 1px solid #dee2e6;
    background: white;
    padding: 0;
    transition: all 0.2s;
}

.btn-hab-size:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-hab-size.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* =====================================================
   AREA BADGE
   ===================================================== */

.area-badge-rounded {
    background: white;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    min-width: 80px;
    text-align: center;
}

/* =====================================================
   TOOL GROUP BOXES
   ===================================================== */

.tool-group-box {
    min-height: 180px;
}

/* =====================================================
   ARTICLE PAGE ARTICLE CARD STYLES
   (Migrated from home.php inline styles)
   ===================================================== */

.article-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.article-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    color: #9ca3af;
}

.article-placeholder .material-symbols-outlined {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.article-placeholder span:last-child {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   COOKIE BANNER STYLES
   (Migrated from cookie-banner.php)
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-banner__text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-banner__btn--accept {
    background: var(--primary);
    color: white;
}

.cookie-banner__btn--accept:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }
}