/**
 * Elements Styles
 * 
 * @package SIC_Base_Theme
 */

/* Hero Element */
.sic-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxxl) 0;
}

.sic-hero.hero-small { min-height: 400px; }
.sic-hero.hero-medium { min-height: 600px; }
.sic-hero.hero-large { min-height: 800px; }
.sic-hero.hero-fullscreen { min-height: 100vh; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sic-hero.hero-align-left .hero-content { text-align: left; }
.sic-hero.hero-align-right .hero-content { text-align: right; }

/* Button Element */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-secondary);
    color: #fff;
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-small { padding: var(--spacing-xs) var(--spacing-md); font-size: 0.875rem; }
.btn-large { padding: var(--spacing-md) var(--spacing-xl); font-size: 1.125rem; }

/* Columns Element */
.sic-columns .columns-container {
    display: grid;
    gap: var(--gap);
}

.sic-columns.columns-2 .columns-container { grid-template-columns: repeat(2, 1fr); }
.sic-columns.columns-3 .columns-container { grid-template-columns: repeat(3, 1fr); }
.sic-columns.columns-4 .columns-container { grid-template-columns: repeat(4, 1fr); }

.sic-columns.gap-small .columns-container { gap: var(--spacing-md); }
.sic-columns.gap-large .columns-container { gap: var(--spacing-xxl); }

/* Accordion Element */
.sic-accordion {
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

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

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

.accordion-header:hover {
    background: var(--color-background-alt);
}

.accordion-content {
    display: none;
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Tabs Element */
.sic-tabs {
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background-alt);
}

.tab-button {
    flex: 1;
    padding: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--color-background);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.tab-pane {
    display: none;
    padding: var(--spacing-lg);
}

.tab-pane.active {
    display: block;
}

/* Team Member Element */
.sic-team-member {
    text-align: center;
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.team-member-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

/* Testimonial Element */
.sic-testimonial {
    padding: var(--spacing-xl);
    background: var(--color-background-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.testimonial-rating {
    margin: var(--spacing-md) 0;
}

.star.filled {
    color: #FFD700;
}

/* Icon Box Element */
.sic-icon-box {
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sic-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.icon-box-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* Contact Info Element */
.contact-info-table {
    width: 100%;
    border-collapse: collapse;
}

.contact-info-table th,
.contact-info-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.contact-info-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.contact-info-table tr:nth-child(even) {
    background: var(--color-background-alt);
}

.contact-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-card {
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .sic-columns .columns-container {
        grid-template-columns: 1fr !important;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .contact-info-table {
        font-size: 0.875rem;
    }
    
    .contact-info-table th,
    .contact-info-table td {
        padding: var(--spacing-sm);
    }
}
