/* GREEKYA Warranty Page Styles */

.warranty-header {
    padding: 100px 0 20px;
    background: linear-gradient(to bottom, #000000, var(--dark-bg));
    text-align: center;
}

.warranty-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.warranty-container {
    padding: 10px 0;
    min-height: 50vh;
}

.search-box-container {
    max-width: 800px;
    margin: 0 auto 60px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 18px 25px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Result Card */
.result-container {
    max-width: 900px;
    margin: 0 auto;
    display: none;
    /* Shown via JS */
}

.result-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.result-header {
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    gap: 15px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download {
    padding: 10px 20px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download i {
    font-size: 0.9rem;
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-download.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-download.loading i {
    animation: spin 1s linear infinite;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status-valid {
    background: rgba(0, 255, 170, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-expired {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-void {
    background: rgba(255, 184, 0, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.error-message-container {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 4px;
    color: #ef4444;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.1), inset 0 0 10px rgba(220, 38, 38, 0.05);
    animation: fadeInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-message-container i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-body {
    padding: 15px 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.product-preview img {
    width: 100%;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Futuristic Dynamic Layout */
.warranty-layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 400px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 20px;
}

.warranty-layout-wrapper.has-results {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

.search-section {
    width: 100%;
    max-width: 600px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 20px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.warranty-layout-wrapper.has-results .search-section {
    width: 350px;
}

.results-section {
    flex: 1;
    width: 100%;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(50px);
}

.warranty-layout-wrapper.has-results .results-section {
    opacity: 1;
    transform: translateX(0);
}

/* Scanner Animation */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    display: none;
    z-index: 10;
}

.search-section.scanning .scanner-line {
    display: block;
    animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.search-section.scanning {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.search-box-container {
    width: 100%;
    margin-bottom: 0;
}

/* Adjustments for Side View */
.warranty-layout-wrapper.has-results .search-form {
    flex-direction: column;
}

.warranty-layout-wrapper.has-results .search-input {
    width: 100%;
    margin-bottom: 15px;
}

.warranty-layout-wrapper.has-results .btn-primary {
    width: 100%;
}

.result-container {
    width: 100%;
}

.result-card {
    margin-top: 0;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.specs-divider {
    grid-column: 1 / -1;
    margin: 10px 0 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--glass-border);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 3px;
    position: relative;
}

.specs-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.status-item {
    grid-column: 1 / -1;
    margin-top: 30px;
    background: rgba(0, 242, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--glass-border);
}

.status-item .detail-value {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Loading Spinner Inline (dentro del search-section) */
.loading-spinner-inline {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    animation: fadeInDown 0.3s ease;
}

.scan-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    animation: scanPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-glow);
    margin-bottom: 12px;
}

@keyframes scanPulse {
    0%   { opacity: 0.2; transform: scaleX(0.4); }
    50%  { opacity: 1;   transform: scaleX(1);   }
    100% { opacity: 0.2; transform: scaleX(0.4); }
}

.scan-text-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scan-icon {
    color: var(--primary);
    font-size: 1rem;
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; transform: scale(1);    }
    50%       { opacity: 0.5; transform: scale(0.9); }
}

.scan-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scan-dots {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: flex-end;
}

.scan-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--primary-glow);
}

.scan-dots span:nth-child(2) { animation-delay: 0.2s; }
.scan-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%       { transform: translateY(-5px); opacity: 1; }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .product-slider-container {
        padding: 0 15px;
    }

    .product-card {
        min-width: 280px;
    }

    .slider-btn {
        display: none;
    }

    .product-slider {
        padding-bottom: 30px;
        gap: 20px;
    }

    .category-filter {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 10px 15px;
    }
}

/* Footer Overrides for Warranty Page */
.footer {
    padding: 60px 0 30px;
    background: #000;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.4s;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .brand-logo-container {
        justify-content: center;
    }
}