/**
 * HashDrip Theme Premium Styling
 * Comprehensive premium visual enhancements
 *
 * @package HashDrip
 * @version 1.0.0
 */

/* ==========================================================================
   PREMIUM TYPOGRAPHY
   ========================================================================== */

/* Headings with gold accent */
h1, h2, h3, h4, h5, h6,
.hd-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Gradient headings */
.text-gradient,
.hd-gradient-text {
    background: linear-gradient(135deg, #D4A843 0%, #F4D03F 50%, #D4A843 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Drop caps */
.hd-dropcap::first-letter,
.has-drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    font-weight: 700;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: #D4A843;
    font-family: 'Playfair Display', serif;
}

/* Pull quotes */
.hd-pullquote,
.wp-block-pullquote {
    position: relative;
    padding: 2rem 3rem;
    margin: 2.5rem 0;
    border: none;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(244, 208, 63, 0.05));
    border-radius: 1rem;
    border-left: 4px solid #D4A843;
}

.hd-pullquote::before,
.wp-block-pullquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    color: rgba(212, 168, 67, 0.3);
    line-height: 1;
}

.hd-pullquote p,
.wp-block-pullquote p {
    font-size: 1.5rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin: 0;
}

.hd-pullquote cite,
.wp-block-pullquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: #D4A843;
}

/* Blockquotes */
blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #141414;
    border-left: 3px solid #D4A843;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #E5E7EB;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Horizontal rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
    margin: 3rem 0;
}

/* ==========================================================================
   PREMIUM LISTS
   ========================================================================== */

/* Unordered lists with gold bullets */
.hd-content ul:not([class]),
.entry-content ul:not([class]),
article ul:not([class]) {
    list-style: none;
    padding-left: 0;
}

.hd-content ul:not([class]) li,
.entry-content ul:not([class]) li,
article ul:not([class]) li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.hd-content ul:not([class]) li::before,
.entry-content ul:not([class]) li::before,
article ul:not([class]) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    border-radius: 50%;
}

/* Ordered lists with gold numbers */
.hd-content ol:not([class]),
.entry-content ol:not([class]),
article ol:not([class]) {
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

.hd-content ol:not([class]) li,
.entry-content ol:not([class]) li,
article ol:not([class]) li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    counter-increment: item;
}

.hd-content ol:not([class]) li::before,
.entry-content ol:not([class]) li::before,
article ol:not([class]) li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    color: #0A0A0A;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Check lists */
.hd-checklist li::before {
    content: '✓' !important;
    background: linear-gradient(135deg, #D4A843, #F4D03F) !important;
    color: #0A0A0A !important;
    font-size: 0.75rem !important;
}

/* ==========================================================================
   PREMIUM FORM STYLING
   ========================================================================== */

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #141414;
    border: 2px solid #2A2A2A;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
    border-color: #3A3A3A;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.15),
                0 0 20px rgba(212, 168, 67, 0.1);
}

/* Placeholder styling */
::placeholder {
    color: #6B7280;
    opacity: 1;
}

/* Select dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #141414;
    border: 2px solid #3A3A3A;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 0.5rem;
}

input[type="checkbox"] {
    border-radius: 0.375rem;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    border-color: #D4A843;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    color: #0A0A0A;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.1;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #0A0A0A;
    border-radius: 50%;
    margin: 4px auto;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E5E7EB;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Form groups */
.form-group,
.woocommerce-form-row,
.form-row {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   PREMIUM TABLES
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #141414;
    border-radius: 1rem;
    overflow: hidden;
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #2A2A2A;
}

th {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
    color: #D4A843;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(212, 168, 67, 0.05);
}

/* ==========================================================================
   PREMIUM IMAGES
   ========================================================================== */

article img,
.entry-content img,
.hd-content img {
    border-radius: 1rem;
    transition: all 0.4s ease;
}

/* Image with frame */
.hd-image-frame {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    border-radius: 1.25rem;
}

.hd-image-frame img {
    display: block;
    border-radius: 0.875rem;
}

/* Image hover zoom container */
.hd-image-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.hd-image-zoom img {
    transition: transform 0.5s ease;
}

.hd-image-zoom:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   PREMIUM BREADCRUMBS
   ========================================================================== */

.hd-breadcrumbs,
.woocommerce-breadcrumb,
.yoast-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.hd-breadcrumbs a,
.woocommerce-breadcrumb a,
.yoast-breadcrumbs a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hd-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover,
.yoast-breadcrumbs a:hover {
    color: #D4A843;
}

.hd-breadcrumbs span:not(:last-child)::after,
.woocommerce-breadcrumb span:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #4B5563;
}

/* Current page */
.hd-breadcrumbs .current,
.hd-breadcrumbs span:last-child {
    color: #D4A843;
}

/* ==========================================================================
   PREMIUM PAGINATION
   ========================================================================== */

.hd-pagination,
.woocommerce-pagination,
nav.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.hd-pagination a,
.hd-pagination span,
.woocommerce-pagination a,
.woocommerce-pagination span,
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    background: #141414;
    border: 2px solid #2A2A2A;
    border-radius: 0.75rem;
    color: #9CA3AF;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hd-pagination a:hover,
.woocommerce-pagination a:hover,
a.page-numbers:hover {
    border-color: #D4A843;
    color: #D4A843;
    transform: translateY(-2px);
}

.hd-pagination .current,
.woocommerce-pagination .current,
.page-numbers.current {
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    border-color: transparent;
    color: #0A0A0A;
}

.hd-pagination .prev,
.hd-pagination .next {
    background: transparent;
    border-color: #D4A843;
    color: #D4A843;
}

.hd-pagination .prev:hover,
.hd-pagination .next:hover {
    background: #D4A843;
    color: #0A0A0A;
}

/* ==========================================================================
   PREMIUM BUTTONS
   ========================================================================== */

/* Button base */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Primary button */
.hd-btn--primary,
button[type="submit"],
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, #D4A843 0%, #F4D03F 100%);
    color: #0A0A0A !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.hd-btn--primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4),
                0 0 40px rgba(212, 168, 67, 0.2);
}

/* Secondary/outline button */
.hd-btn--secondary,
.button.alt,
.woocommerce a.button.alt {
    background: transparent;
    border: 2px solid #D4A843;
    color: #D4A843 !important;
}

.hd-btn--secondary:hover,
.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: #D4A843;
    color: #0A0A0A !important;
}

/* Ghost button */
.hd-btn--ghost {
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: #D4A843;
}

.hd-btn--ghost:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: #D4A843;
}

/* Large button */
.hd-btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* Small button */
.hd-btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.hd-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #D4A843, #F4D03F);
    z-index: 99999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

body.admin-bar .hd-scroll-progress {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hd-scroll-progress {
        top: 46px;
    }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.hd-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hd-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.5);
}

.hd-back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #0A0A0A;
    stroke-width: 2.5;
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */

.hd-announcement-bar {
    background: linear-gradient(90deg, #D4A843, #F4D03F, #D4A843);
    background-size: 200% auto;
    animation: announcementShimmer 3s linear infinite;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10000;
}

@keyframes announcementShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hd-announcement-bar__text {
    color: #0A0A0A;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.hd-announcement-bar__text a {
    color: #0A0A0A;
    text-decoration: underline;
    font-weight: 700;
}

.hd-announcement-bar__close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hd-announcement-bar__close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.hd-announcement-bar__close svg {
    width: 14px;
    height: 14px;
    stroke: #0A0A0A;
}

/* Adjust header when announcement bar is present */
body.has-announcement .hd-header {
    top: 44px;
}

body.has-announcement.admin-bar .hd-header {
    top: 76px;
}

body.has-announcement {
    padding-top: 124px;
}

body.has-announcement.admin-bar {
    padding-top: 156px;
}

/* ==========================================================================
   PREMIUM LOADING STATES
   ========================================================================== */

/* Skeleton loading */
.hd-skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner */
.hd-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2A2A2A;
    border-top-color: #D4A843;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   NOTIFICATION BADGES
   ========================================================================== */

.hd-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2rem;
}

.hd-badge--gold {
    background: linear-gradient(135deg, #D4A843, #F4D03F);
    color: #0A0A0A;
}

.hd-badge--new {
    background: #10B981;
    color: #fff;
}

.hd-badge--sale {
    background: #EF4444;
    color: #fff;
}

.hd-badge--hot {
    background: #F59E0B;
    color: #0A0A0A;
}

.hd-badge--low-stock {
    background: #F97316;
    color: #fff;
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.5rem 1rem;
    background: #1F1F1F;
    color: #fff;
    font-size: 0.8125rem;
    white-space: nowrap;
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #D4A843;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* ==========================================================================
   ACCORDIONS & TABS
   ========================================================================== */

/* Accordion */
.hd-accordion {
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    overflow: hidden;
}

.hd-accordion__item {
    border-bottom: 1px solid #2A2A2A;
}

.hd-accordion__item:last-child {
    border-bottom: none;
}

.hd-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: #141414;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hd-accordion__header:hover {
    background: #1A1A1A;
}

.hd-accordion__title {
    font-weight: 600;
    color: #fff;
}

.hd-accordion__icon {
    width: 24px;
    height: 24px;
    stroke: #D4A843;
    transition: transform 0.3s ease;
}

.hd-accordion__item.is-open .hd-accordion__icon {
    transform: rotate(180deg);
}

.hd-accordion__content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #0F0F0F;
}

.hd-accordion__item.is-open .hd-accordion__content {
    padding: 1.5rem;
    max-height: 500px;
}

/* Tabs */
.hd-tabs__nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #2A2A2A;
    margin-bottom: 1.5rem;
}

.hd-tabs__tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #9CA3AF;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.hd-tabs__tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #D4A843;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hd-tabs__tab:hover,
.hd-tabs__tab.is-active {
    color: #D4A843;
}

.hd-tabs__tab.is-active::after {
    transform: scaleX(1);
}

.hd-tabs__panel {
    display: none;
}

.hd-tabs__panel.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.hd-alert,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hd-alert--success,
.woocommerce-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.hd-alert--info,
.woocommerce-info {
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: #D4A843;
}

.hd-alert--error,
.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

/* ==========================================================================
   DIVIDERS & SEPARATORS
   ========================================================================== */

.hd-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.hd-divider::before,
.hd-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2A2A2A);
}

.hd-divider::after {
    background: linear-gradient(90deg, #2A2A2A, transparent);
}

.hd-divider__icon {
    width: 40px;
    height: 40px;
    background: #141414;
    border: 2px solid #D4A843;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A843;
}

/* ==========================================================================
   CODE BLOCKS
   ========================================================================== */

code {
    padding: 0.25rem 0.5rem;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 0.375rem;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.875em;
    color: #D4A843;
}

pre {
    padding: 1.5rem;
    background: #0D0D0D;
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    overflow-x: auto;
}

pre code {
    padding: 0;
    background: none;
    border: none;
    color: #E5E7EB;
}

/* ==========================================================================
   RESPONSIVE HELPERS
   ========================================================================== */

@media (max-width: 768px) {
    .hd-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hd-hide-desktop {
        display: none !important;
    }
}


/* ==========================================================================
   404 PAGE PREMIUM STYLING
   ========================================================================== */
.hd-404-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0A0A0A 0%, #111 50%, #0A0A0A 100%);
    padding: 4rem 2rem;
}

.hd-404-smoke {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.hd-404-smoke__layer {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: smoke404Move 20s ease-in-out infinite;
}

.hd-404-smoke__layer--1 {
    top: -25%;
    left: -25%;
}

.hd-404-smoke__layer--2 {
    bottom: -25%;
    right: -25%;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes smoke404Move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

.hd-404__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hd-404__number {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.hd-404__digit {
    font-size: 8rem;
    font-weight: 900;
    font-family: 'Playfair Display', Georgia, serif;
    background: linear-gradient(180deg, #D4A843 0%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hd-404__digit--zero {
    animation: zeroFloat 3s ease-in-out infinite;
}

@keyframes zeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 640px) {
    .hd-404__digit {
        font-size: 5rem;
    }
}

.hd-404__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.hd-404__subtitle {
    font-size: 1.25rem;
    color: #D4A843;
    margin-bottom: 1rem;
}

.hd-404__text {
    color: #9CA3AF;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hd-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hd-404__search {
    margin-bottom: 2rem;
}

.hd-404__search p {
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.hd-404__search .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.hd-404__search .search-field {
    flex: 1;
    border-radius: 3rem 0 0 3rem;
}

.hd-404__search .search-submit {
    border-radius: 0 3rem 3rem 0;
    padding: 1rem 1.5rem;
}
