/* ============================================
   Reusable Components
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item a {
    color: var(--dark-gray);
}

.breadcrumb-item a:hover {
    color: var(--orange-accent);
}

.breadcrumb-item.active {
    color: var(--orange-accent);
}

.breadcrumb-separator {
    color: #888;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--orange-accent);
    color: var(--white);
}

.badge-secondary {
    background: var(--secondary-cream);
    color: var(--dark-gray);
}

.badge-success {
    background: #28a745;
    color: var(--white);
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
    color: var(--white);
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-icon {
    font-size: 1.5rem;
}

/* Modal/Lightbox */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease;
}

.modal-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* Accordion */
.accordion {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

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

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--secondary-cream);
}

.accordion-title {
    font-weight: 600;
    color: var(--dark-gray);
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--orange-accent);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body {
    padding: 0 20px 20px;
    color: #555;
}

/* Tabs */
.tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--dark-gray);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-accent);
    transition: width 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--orange-accent);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    padding: 30px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-accent), var(--gold-mid));
    transition: width 1s ease;
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--dark-gray);
    color: var(--white);
    border-radius: 5px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-gray);
}

.tooltip-container:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--orange-accent);
    color: var(--orange-accent);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: var(--secondary-cream);
    color: var(--orange-accent);
}

/* Divider */
.divider {
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

.divider-vertical {
    width: 1px;
    background: #eee;
    height: 100%;
}

/* Icon Box */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange-accent), #e67310);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Quote Box */
.quote-box {
    background: var(--secondary-cream);
    padding: 30px;
    border-left: 5px solid var(--orange-accent);
    border-radius: 5px;
    margin: 30px 0;
}

[dir="rtl"] .quote-box {
    border-left: none;
    border-right: 5px solid var(--orange-accent);
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.quote-author {
    font-weight: 600;
    color: var(--orange-accent);
}

/* List with Icons */
.icon-list {
    list-style: none;
}

.icon-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-list li i {
    color: var(--orange-accent);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.info-box-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-cream);
    color: var(--orange-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.info-box-content h4 {
    margin-bottom: 5px;
}

.info-box-content p {
    color: #555;
    margin: 0;
}

/* Pricing Card */
.pricing-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    background: linear-gradient(135deg, var(--orange-accent), #e67310);
    color: var(--white);
    padding: 30px;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-period {
    font-size: 1rem;
    opacity: 0.9;
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-cream), var(--primary-cream));
    color: var(--orange-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.feature-title {
    margin-bottom: 15px;
}

.feature-description {
    color: #555;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--orange-accent);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--orange-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #e67310;
}

[dir="rtl"] .search-input {
    padding: 12px 20px 12px 50px;
}

[dir="rtl"] .search-btn {
    right: auto;
    left: 5px;
}
