/* Tiles Detail Page Styles */
/* Extends in-stock-detail.css - adapts styles for tiles */

/* Import base in-stock-detail styles by referencing them */
/* All base styles from in-stock-detail.css apply */

/* =================================
   Tile Detail Specific Styles
   ================================= */

/* Prevent layout overflow when price block is present (grid columns can shrink) */
.tiles-detail-content .grid,
section.bg-marque-black .w-full .grid {
    min-width: 0;
}

/* Tile main image - clickable for lightbox, no hover effect */
.tile-main-image {
    cursor: pointer;
}

/* WCAG 2.2.1: Focus visible for keyboard users */
.tile-main-image-link:focus-visible,
.tile-main-image:focus-visible,
.additional-image-thumb:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* All other styles from in-stock-detail.css apply automatically */

/* =================================
   Google Drive Button - Ensure Text Visibility (no inline styles)
   ================================= */

.cta-google-drive {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-google-drive-text {
    display: inline;
    color: inherit;
}

body.theme-light .cta-google-drive .cta-google-drive-text {
    color: #1a1a1a;
}

body.theme-dark .cta-google-drive .cta-google-drive-text,
main.bg-marque-black .cta-google-drive .cta-google-drive-text {
    color: #ffffff;
}

/* =================================
   Hero Text Colors - Force White in All Themes
   ================================= */

/* Ensure hero text is always white in both light and dark themes */
.in-stock-hero-bundle,
body.theme-light .in-stock-hero-bundle,
body.theme-dark .in-stock-hero-bundle,
html body:not(.theme-light) .in-stock-hero-bundle {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

.in-stock-hero-title,
body.theme-light .in-stock-hero-title,
body.theme-dark .in-stock-hero-title,
html body:not(.theme-light) .in-stock-hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.in-stock-hero-tagline,
body.theme-light .in-stock-hero-tagline,
body.theme-dark .in-stock-hero-tagline,
html body:not(.theme-light) .in-stock-hero-tagline {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Slightly reduce hero title size across breakpoints to match in-stock detail pages */
.in-stock-hero-title {
    font-size: 1.2rem !important;
    line-height: 1.06;
}

@media (min-width: 640px) {
    .in-stock-hero-title {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .in-stock-hero-title {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 1024px) {
    .in-stock-hero-title {
        font-size: 2.3rem !important;
    }
}

@media (min-width: 1280px) {
    .in-stock-hero-title {
        font-size: 2.8rem !important;
    }
}

/* =================================
   Stock Status Badge Styling for Tile Detail Page
   ================================= */

/* Stock status badge - data attribute based styling */
.stock-status-badge[data-status="in_stock"],
main.bg-marque-black .stock-status-badge[data-status="in_stock"] {
    background-color: rgba(34, 197, 94, 0.3) !important;
    color: rgb(134, 239, 172) !important;
    border-color: rgb(74, 222, 128) !important;
}

.stock-status-badge[data-status="reserved"],
main.bg-marque-black .stock-status-badge[data-status="reserved"] {
    background-color: rgba(234, 179, 8, 0.3) !important;
    color: rgb(253, 224, 71) !important;
    border-color: rgb(250, 204, 21) !important;
}

.stock-status-badge[data-status="sold"],
main.bg-marque-black .stock-status-badge[data-status="sold"] {
    background-color: rgba(220, 38, 38, 0.3) !important;
    color: rgb(248, 113, 113) !important;
    border-color: rgb(239, 68, 68) !important;
}

/* Light theme - Stock status badge text must be dark gray for readability */
body.theme-light .stock-status-badge[data-status="in_stock"],
body.theme-light .stock-status-badge[data-status="reserved"],
body.theme-light .stock-status-badge[data-status="sold"],
body.theme-light main.bg-marque-black .stock-status-badge[data-status="in_stock"],
body.theme-light main.bg-marque-black .stock-status-badge[data-status="reserved"],
body.theme-light main.bg-marque-black .stock-status-badge[data-status="sold"] {
    color: #4a4a4a !important; /* Gray-700 - gri-siyah ton */
}

/* Dark theme - Stock status badge text must be white for readability */
body.theme-dark .stock-status-badge[data-status="in_stock"],
body.theme-dark .stock-status-badge[data-status="reserved"],
body.theme-dark .stock-status-badge[data-status="sold"],
html body:not(.theme-light) .stock-status-badge[data-status="in_stock"],
html body:not(.theme-light) .stock-status-badge[data-status="reserved"],
html body:not(.theme-light) .stock-status-badge[data-status="sold"],
main.bg-marque-black .stock-status-badge[data-status="in_stock"],
main.bg-marque-black .stock-status-badge[data-status="reserved"],
main.bg-marque-black .stock-status-badge[data-status="sold"] {
    color: #ffffff !important;
}

/* CTA split row: WhatsApp + Contact Us side by side */
.cta-split-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}
.cta-split-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--site-font-family);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.cta-split-contact {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.cta-split-contact:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}
.cta-split-wa {
    /* Match visual weight of other CTAs by default, but keep WhatsApp hover accent */
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    gap: 0.4rem;
}
.cta-split-wa:hover {
    background: rgba(37,211,102,0.08);
    border-color: #25d366;
    color: #25d366;
}
.cta-wa-svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}
.cta-wa-text {
    font-size: 0.9375rem;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: none;
}
.theme-light .cta-split-contact {
    background: rgba(0,0,0,0.05);
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.12);
}
.theme-light .cta-split-contact:hover {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.18);
}
.theme-light .cta-split-wa {
    background: rgba(0,0,0,0.05);
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.12);
}
.theme-light .cta-split-wa:hover {
    background: rgba(37,211,102,0.06);
    border-color: #25d366;
    color: #128c7e;
}
