/**
 * Airmaster Theme - Additional Custom Styles
 * Extends the main style.css with additional utility and component styles
 */

/* ===== Single Post / Single CPT Styles ===== */
.single-post,
.single-services,
.single-projects,
.single-industries {
    padding-top: 80px;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.single-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.single-content ul,
.single-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.single-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.single-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== Service Detail Page ===== */
.service-detail-header {
    background-color: var(--color-primary);
    padding: 150px 0 60px;
    color: var(--color-white);
}

.service-detail-header h1 {
    color: var(--color-white);
    font-size: 42px;
    margin-bottom: 15px;
}

.service-detail-header p {
    font-size: 18px;
    opacity: 0.9;
}

.service-detail-content {
    padding: 60px 0;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background-color: var(--color-bg-light);
    border-radius: 6px;
}

.service-feature-item::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300a0b0' d='M10 3L4.5 8.5 2 6' stroke='%2300a0b0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Archive Page Styles ===== */
.archive-header {
    padding: 150px 0 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.archive-header h1 {
    color: var(--color-white);
    font-size: 42px;
}

/* ===== 404 Page ===== */
.error-404 {
    text-align: center;
    padding: 150px 20px 100px;
}

.error-404 h1 {
    font-size: 80px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.pagination a:hover,
.pagination span.current {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--color-white);
}

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

.breadcrumb::after {
    content: ' / ';
}

/* ===== Search Results ===== */
.search-results {
    padding: 150px 0 60px;
}

.search-results h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* ===== Form Success Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#formResponse {
    animation: fadeInUp 0.3s ease;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Accessibility ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .hero-slider,
    .slider-controls {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}
