/* Extracted from domain-pricing.php style block 1 */
/* ================================
   TLD Showcase Responsive Styles
   ================================ */

/* TLD Showcase Grid - RENAMED to avoid conflict with pricing grid */
.tld-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* TLD Item */
.tld-item {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: default;
}

.tld-item.active {
    transform: translateY(-5px);
    border-color: #0091D6;
    box-shadow: 0 20px 30px -10px rgba(0,145,214,0.25);
}

.tld-item.active .tld-tooltip {
    visibility: visible;
    opacity: 1;
}

/* TLD Content */
.tld-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tld-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tld-item.active .tld-icon {
    transform: scale(1.05);
}

.tld-name {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.tld-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tld-price {
    background: rgba(39,104,219,0.08);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

/* Tooltip */
.tld-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: #0B1630;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.tld-tooltip strong {
    color: #22D3EE;
    display: block;
    margin-bottom: 5px;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0B1630;
}

/* Tablet - 3 columns */
@media (max-width: 991px) {
    .tld-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .tld-icon {
        width: 70px;
        height: 70px;
    }
    
    .tld-name {
        font-size: 22px;
    }
}

/* Mobile Large - 2 columns */
@media (max-width: 768px) {
    .tld-showcase-modern {
        padding: 60px 0 !important;
    }
    
    .tld-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .tld-item {
        padding: 20px 10px;
    }
    
    .tld-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .tld-name {
        font-size: 20px;
    }
    
    .tld-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .tld-price {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* Hide background gradients on mobile */
    .tld-bg-gradient {
        opacity: 0.3;
    }
    
    /* Adjust tooltip for mobile */
    .tld-tooltip {
        width: 180px;
        font-size: 12px;
        padding: 10px;
    }
}

/* Mobile Small - still 2 columns but smaller */
@media (max-width: 480px) {
    .tld-showcase-modern {
        padding: 40px 0 !important;
    }
    
    .tld-showcase-grid {
        gap: 10px;
        padding: 0 5px;
    }
    
    .tld-item {
        padding: 15px 8px;
        border-radius: 16px;
    }
    
    .tld-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .tld-name {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .tld-desc {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .tld-price {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    /* Hide tooltips on very small devices since hover doesn't work well */
    .tld-tooltip {
        display: none;
    }
    
    /* Add a note that tap for info is available */
    .tld-item::after {
        content: 'ⓘ';
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 12px;
        color: var(--color-primary);
        opacity: 0.5;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .tld-showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tld-item {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    
    .tld-content {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .tld-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .tld-name {
        font-size: 16px;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .tld-desc {
        font-size: 12px;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .tld-price {
        margin-left: auto;
    }
    
    .tld-item::after {
        display: none;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .tld-item.active {
        transform: translateY(-3px);
    }
    
    /* On touch devices, show tooltip on tap */
    .tld-item:active .tld-tooltip {
        visibility: visible;
        opacity: 1;
    }
}

