/**
 * Product Documents Accordion Styles
 * 
 * This file contains all the CSS styles for the Product Documents accordion feature.
 * It includes styles for both taxonomy-level and product-level accordions with
 * responsive design and accessibility features.
 * 
 * @package HelloElementorChild
 */

/* ==========================================================================
   Main Accordion Container
   ========================================================================== */

.product-documents-accordion {
    max-width: 100%;
    margin: 20px 0;
    position: relative;
}

/* ==========================================================================
   Taxonomy Level Accordion
   ========================================================================== */

.taxonomy-accordion-item {
    border: none;
    border-radius: 0;
    margin-bottom: 5px;
    background: #f8f8f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.taxonomy-accordion-item:nth-child(even) {
    background: #faf9f7;
}

.taxonomy-accordion-header h3 {
    color: #000 !important;
	font-size: 25px !important;
	font-weight: 400 !important;
}

.taxonomy-accordion-header {
    background: #f8f8f9;
    color: #eb741f;
    padding: 20px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}
.taxonomy-accordion-header.active h3{
	color: #eb741f !important;
}
.taxonomy-accordion-header.active {
    background: #f8f8f9;
}

.taxonomy-accordion-header:hover {
    background: #fef8f4;
}
.taxonomy-accordion-header:hover h3{
	color: #ea6700 !important;
}
.taxonomy-accordion-header.active:hover {
    background: #fef8f4;
}

.taxonomy-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    flex: 1;
    line-height: 1.4;
}

/* ==========================================================================
   Product Level Accordion
   ========================================================================== */

.product-accordion-item {
    border-bottom: none;
    margin: 0;
    transition: background-color 0.3s ease;
}

.product-accordion-item:last-child {
    border-bottom: none;
}
.product-accordion-header h4{
	color: #000 !important;
	font-weight: 400 !important;
}

.product-accordion-header {
    background: #f8f8f9;
    color: #eb741f;
    padding: 0px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: none;
    user-select: none;
}

.product-accordion-header:hover {
    background: #f8f8f9;
}
.product-accordion-header:hover h4{
	color: #eb741f !important;
} 
.product-accordion-header.active h4{
	color: #eb741f !important;
}
h4.product-title:before {
    content: "•";
    position: relative;
    font-size: 20px;
    top: 2px;
	padding-right: 15px;
}

.product-title {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    color: #333;
    flex: 1;
    line-height: 1.4;
}

/* ==========================================================================
   Accordion Icons
   ========================================================================== */

.accordion-icon {
    font-size: 2.5em;
    font-weight: 300;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
    line-height: 1;
    color: #636466;
}

.taxonomy-accordion-header.active .accordion-icon {
    color: #636466;
    transform: rotate(45deg);
}

.product-accordion-header.active .accordion-icon {
    color: #636466;
    transform: rotate(45deg);
}

/* ==========================================================================
   Accordion Content
   ========================================================================== */

.taxonomy-accordion-content,
.product-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f8f9;
}

.taxonomy-accordion-content.active,
.product-accordion-content.active {
    max-height: 2000px;
    transition: max-height 0.4s ease;
	 background: #f8f8f9;
	padding-bottom: 10px;
}

/* ==========================================================================
   Documents List
   ========================================================================== */

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f8f9;
}

.document-item {
    margin-bottom: 0;
    padding: 0;
}

.document-item:last-child {
    border-bottom: none;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 3px 60px;
    background: #f8f8f9;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.document-link:hover {
    background: #f8f8f9;
    color: #EA7229;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.document-icon {
    font-size: 1em;
    margin-right: 12px;
    min-width: 16px;
    transition: transform 0.3s ease;
    color: #999;
}

.document-link:hover .document-icon {
    transform: none;
    color: #EA7229;
}

.document-title {
    font-weight: 400;
    flex: 1;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.4;
}

/* ==========================================================================
   State Messages
   ========================================================================== */

.product-documents-empty,
.product-documents-error {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 20px 0;
}

.product-documents-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.product-documents-empty {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.product-documents-accordion.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.product-documents-accordion.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
}

/* ==========================================================================
   Refresh Button
   ========================================================================== */

.product-documents-refresh-btn {
    background: #EA7229;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.product-documents-refresh-btn:hover {
    background: #d65a1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(234, 114, 41, 0.3);
}

.product-documents-refresh-btn:active {
    transform: translateY(0);
}

.product-documents-refresh-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Debug Information
   ========================================================================== */

.product-documents-debug {
    background: #f0f0f0;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.product-documents-debug h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.product-documents-debug p {
    margin: 5px 0;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .taxonomy-accordion-header {
        padding: 15px;
    }
	.taxonomy-accordion-header h3{
		font-size: 20px !important;
	}
    .taxonomy-title {
        font-size: 1.2em;
    }
    
    .product-accordion-header {
        padding: 0px 15px;
    }
    
    .product-title {
        font-size: 15px !important;
    }
    
    .documents-list {
        padding: 0px;
    }
    
    .document-link {
        padding: 3px 36px;
    }
    
    .document-link:hover {
        transform: none;
    }
    
    .document-link:hover::before {
        display: none;
    }
	.accordion-icon{
		font-size: 32px;
	}
	h4.product-title:before{
		padding-right: 10px !important;
	}
}

@media (max-width: 480px) {
    .taxonomy-accordion-header {
        padding: 15px 12px;
    }
    
    .taxonomy-title {
        font-size: 1.1em;
    }
    
    .product-accordion-header {
        padding: 0px 12px;
    }
    
    .documents-list {
        padding: 3px 25px;
    }
    
    .document-link {
        padding: 0px 10px;
        font-size: 15px;
    }
    
    .document-icon {
        font-size: 1em;
        margin-right: 8px;
    }
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 2000px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 2000px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}



