/**
 * SkyFlex LED - Custom CSS
 * Additional styles and overrides
 */

/* === Search Form Styles === */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-form .search-submit {
    padding: 12px 20px;
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-form .search-submit:hover {
    background: var(--accent-hover);
}

/* === Comment Styles === */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-area h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 25px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.comment-reply-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === Page Links === */
.page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: var(--radius);
    font-weight: 500;
}

.page-links a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-links a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.page-links > span {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* === Widget Styles === */
.widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.widget table {
    width: 100%;
    border-collapse: collapse;
}

.widget table th,
.widget table td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.widget table a {
    color: var(--accent-color);
}

/* === Print Styles === */
@media print {
    .site-header,
    .site-footer,
    .hero-slider,
    .sidebar,
    .pagination,
    .comment-respond {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* === Dark mode support === */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #121212;
        --text-dark: #e0e0e0;
    }
}

/* === Compact Application Cards (dicolorled style) === */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-height: 120px;
    justify-content: flex-end;
}

.app-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.app-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.app-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* === Market Tabs Styles === */
.market-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.market-tabs::-webkit-scrollbar {
    height: 4px;
}

.market-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.market-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-tab:hover {
    background: #e8e8e8;
    color: #000000;
    transform: translateY(-2px);
}

.market-tab.active {
    background: #1a73e8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transform: translateY(-2px);
}

.market-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-panel.active {
    display: grid;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-panel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.market-content h3 {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 20px 0;
}

.market-content p {
    font-size: 16px;
    color: #000000;
    line-height: 1.8;
    margin: 0 0 30px 0;
}

.market-content .btn-view-more {
    display: inline-block;
    padding: 12px 30px;
    background: #e63946;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.market-content .btn-view-more:hover {
    background: #d62839;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .market-panel {
        grid-template-columns: 1fr;
    }

    .market-tab {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .market-tab {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* === Products Section === */
.section-products {
    background-color: #f4f7fc;
    padding: 64px 0;
}

.products-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .products-simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-simple-grid {
        grid-template-columns: 1fr;
    }
}
