/**
 * Single Stone Template Styles
 * Semantic Chunking for Stone Guide Posts
 *
 * @package Shoptimizer Child
 */

/* ===== STONE DETAIL PAGE STYLES ===== */

/* Breadcrumb */
.breadcrumb-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #7a5c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c99c63;
}

.breadcrumb .separator {
    color: #4a4542;
}

.breadcrumb .current {
    color: #2f2b28;
    font-weight: 500;
}

/* Stone Detail Section */
.stone-detail-section {
    padding: 2rem 0;
}

.stone-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stone-detail-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.stone-detail-image img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stone-colors {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.color-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stone-detail-info {
    padding-left: 1rem;
}

.stone-detail-title {
    font-size: 2.2rem;
    color: #2f2b28;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stone-detail-subtitle {
    font-size: 1.2rem;
    color: #4a4542;
    margin-bottom: 2rem;
}

/* Info Sections */
.info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 15px;
    border-left: 4px solid #7a5c8d;
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 5px 20px rgba(122, 92, 141, 0.2);
    transform: translateX(5px);
}

.info-section h2 {
    font-size: 1.5rem;
    color: #7a5c8d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-section h2 i {
    font-size: 1.5rem;
    color: #c99c63;
}

.info-section h3 {
    font-size: 1.3rem;
    color: #2f2b28;
    margin-bottom: 1rem;
}

.info-section p {
    color: #4a4542;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-section a {
    color: #7a5c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-section a:hover {
    color: #c99c63;
}

/* Quick Facts Grid */
.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.fact-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #c99c63;
}

.fact-item strong {
    color: #7a5c8d;
}

/* Legend Box */
.legend-box {
    background: linear-gradient(
        135deg,
        rgba(122, 92, 141, 0.1),
        rgba(166, 134, 88, 0.1)
    );
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid rgba(122, 92, 141, 0.2);
}

.legend-box h4 {
    color: #7a5c8d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box h4 i {
    color: #c99c63;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.property-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.property-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.property-card h4 {
    color: #2f2b28;
    margin-bottom: 0.75rem;
}

.property-card p {
    color: #4a4542;
    font-size: 0.9rem;
}

/* Chakra & Zodiac Container */
.chakra-zodiac-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chakra-section,
.zodiac-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Chakras & Zodiac Lists */
.chakras-list,
.zodiac-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chakra-badge,
.zodiac-badge {
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.chakra-badge {
    background: linear-gradient(135deg, #7a5c8d, #a68658);
    color: white;
}

.zodiac-badge {
    background: rgba(166, 134, 88, 0.1);
    color: #a68658;
    text-decoration: none;
    border: 2px solid #a68658;
}

.zodiac-badge:hover {
    background: #a68658;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 134, 88, 0.3);
}

/* Origins Grid */
.origins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.origin-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.origin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.origin-card.primary {
    border: 2px solid #a68658;
}

.origin-card h4 {
    color: #7a5c8d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.origin-card h4 i {
    color: #c99c63;
}

.origin-card ul {
    list-style: none;
}

.origin-card ul li {
    padding: 0.5rem 0;
    color: #5a6c7d;
    border-bottom: 1px solid #f0f0f0;
}

.origin-card ul li:last-child {
    border-bottom: none;
}

.origin-card ul li strong {
    color: #2c3e50;
}

/* Maintenance Steps */
.maintenance-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.maintenance-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.maintenance-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.maintenance-card h4 {
    color: #2f2b28;
    margin-bottom: 0.75rem;
}

.maintenance-card p {
    color: #4a4542;
    font-size: 0.9rem;
}

/* Uses Grid */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.use-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.use-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.use-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.use-card h4 {
    color: #2f2b28;
    margin-bottom: 0.75rem;
}

.use-card p {
    color: #4a4542;
    font-size: 0.9rem;
}

/* ===== PRODUCT SHOWCASE SECTION ===== */
.product-showcase .section-intro {
    color: #4a4542;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 1.25rem;
}

.product-info h4 {
    color: #2f2b28;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #4a4542;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e4dd;
}

.product-price {
    color: #a68658;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-action {
    color: #7a5c8d;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-action {
    transform: translateX(5px);
    color: #c99c63;
}

.products-cta {
    text-align: center;
    padding-top: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== FAQ SECTION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.faq-item h4 {
    color: #7a5c8d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h4::before {
    content: "Q:";
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.faq-item p {
    color: #4a4542;
    padding-left: 2rem;
    position: relative;
}

.faq-item p::before {
    content: "R:";
    position: absolute;
    left: 0;
    color: #c99c63;
    font-weight: 600;
}

/* ===== RELATED TOPICS GRID ===== */
.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(
        135deg,
        rgba(122, 92, 141, 0.05),
        rgba(166, 134, 88, 0.05)
    );
}

.topic-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #7a5c8d, #c99c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
}

.topic-card h4 {
    color: #2f2b28;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: #4a4542;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Stone Actions */
.stone-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7a5c8d, #a68658);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 92, 141, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #2f2b28;
    border: 1px solid #e8e4dd;
}

.btn-secondary:hover {
    background: #f7f5f1;
}

.btn-outline {
    background: white;
    color: #6b5b95;
    border: 2px solid #6b5b95;
}

.btn-outline:hover {
    background: #6b5b95;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.3);
}

/* ===== RELATED STONES SECTION ===== */
.related-stones-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
}

.related-stones-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.related-stones-section .section-intro {
    text-align: center;
    color: #4a4542;
    margin-bottom: 2rem;
    font-style: italic;
}

.related-category {
    margin-bottom: 3rem;
}

.related-category h3 {
    color: #7a5c8d;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-category h3 i {
    color: #c99c63;
}

.category-description {
    color: #4a4542;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.related-stones-section .stones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.related-stones-section .stone-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-stones-section .stone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-stones-section .stone-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7a5c8d, #c99c63);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-stones-section .stone-card:hover::before {
    opacity: 1;
}

.related-stones-section .stone-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-stones-section .stone-info {
    padding: 1.5rem;
}

.related-stones-section .stone-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2f2b28;
    margin-bottom: 0.5rem;
}

.related-stones-section .stone-properties {
    color: #4a4542;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.related-stones-section .stone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-stones-section .stone-tag {
    background: rgba(122, 92, 141, 0.1);
    color: #7a5c8d;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-stones-section .stone-tag.chakra {
    background: rgba(166, 134, 88, 0.1);
    color: #a68658;
}

.related-stones-section .stone-tag.zodiac {
    background: rgba(140, 154, 122, 0.1);
    color: #8c9a7a;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .stone-detail {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .stone-detail-image {
        position: relative;
        top: 0;
    }

    .stone-detail-info {
        padding-left: 0;
    }

    .stone-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .quick-facts-grid,
    .properties-grid,
    .maintenance-steps,
    .uses-grid {
        grid-template-columns: 1fr;
    }

    .chakra-zodiac-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .origins-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 1rem;
    }

    .stone-actions {
        flex-direction: column;
    }

    .stone-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .related-stones-section .stones-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stone-detail {
        padding: 1.5rem;
    }

    .stone-detail-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ICON STYLES ===== */

/* Font Awesome Icon Styling */
.fa,
.fas,
.far,
.fal,
.fab {
    /* Inherit color from parent */
}

/* Icons in headings */
h1 i.fa,
h1 i.fas,
h2 i.fa,
h2 i.fas,
h3 i.fa,
h3 i.fas,
h4 i.fa,
h4 i.fas {
    color: #7a5c8d;
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* Icons in section titles */
.info-section h2 i.fa,
.info-section h2 i.fas {
    color: #7a5c8d;
    font-size: 1.1em;
    margin-right: 10px;
}

/* Icons in property cards */
.property-card i.fa,
.property-card i.fas {
    font-size: 2.5rem;
    color: #c99c63;
    margin-bottom: 1rem;
    display: block;
}

/* Icons in FAQ summaries */
details summary i.fa,
details summary i.fas {
    color: #7a5c8d;
    margin-right: 0.5rem;
}

/* Icons in care/maintenance sections */
.maintenance-card i.fa,
.maintenance-card i.fas {
    font-size: 1.5rem;
    color: #7a5c8d;
    margin-bottom: 0.5rem;
    display: block;
}

/* Icons in use methods */
.use-card i.fa,
.use-card i.fas {
    font-size: 2rem;
    color: #c99c63;
    margin-bottom: 1rem;
    display: block;
}

/* Icon color consistency */
.fa-shield-alt {
    color: #e74c3c;
}
.fa-brain {
    color: #9b59b6;
}
.fa-heart {
    color: #e91e63;
}
.fa-yin-yang {
    color: #3498db;
}
.fa-eye {
    color: #2ecc71;
}
.fa-magic {
    color: #9b59b6;
}
.fa-spa {
    color: #16a085;
}
.fa-gem {
    color: #c99c63;
}
.fa-tint {
    color: #3498db;
}
.fa-moon {
    color: #95a5a6;
}
.fa-sun {
    color: #f39c12;
}
.fa-mountain {
    color: #7f8c8d;
}
.fa-meditate {
    color: #9b59b6;
}
.fa-home {
    color: #e67e22;
}
.fa-question-circle {
    color: #3498db;
}
.fa-info-circle {
    color: #3498db;
}
.fa-wine-glass {
    color: #8e44ad;
}
.fa-globe-americas {
    color: #27ae60;
}
.fa-hands {
    color: #e67e22;
}
.fa-seedling {
    color: #27ae60;
}

/* Ensure icons in Gutenberg blocks render properly */
.wp-block-group h2 .fa,
.wp-block-group h2 .fas,
.wp-block-group h3 .fa,
.wp-block-group h3 .fas {
    color: #7a5c8d;
    margin-right: 8px;
    vertical-align: middle;
}

/* Icon hover effects */
.property-card:hover i.fa,
.property-card:hover i.fas {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Icon sizing consistency */
.wp-block-group h2 i.fa,
.wp-block-group h2 i.fas {
    font-size: 1.2em;
}

.wp-block-group h3 i.fa,
.wp-block-group h3 i.fas {
    font-size: 1.1em;
}

.wp-block-group h4 i.fa,
.wp-block-group h4 i.fas {
    font-size: 1em;
}
