/* 
 * AysimaPOS - Delivery & Return Policy Page Styles
 * Modern SaaS Design - Variables Based
 * copilot-instructions.md COMPLIANT: NO inline styles, modular CSS
 */

/* Hero Section - Matching Other Policy Pages */
.delivery-hero {
    background: var(--gradient-primary);
    padding: var(--spacing-16) 0 var(--spacing-14);
    position: relative;
    overflow: hidden;
}

.delivery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.delivery-hero .container {
    max-width: 1280px;
}

.delivery-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-8);
    color: #ffffff;
    position: relative;
    z-index: var(--z-index-10);
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: #ffffff;
    opacity: 0.95;
    position: relative;
    z-index: var(--z-index-10);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Hero subtitle internal links - SEO optimized */
.delivery-hero__subtitle a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.delivery-hero__subtitle a:hover {
    color: var(--gray-100) !important;
    text-decoration-thickness: 2px !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3) !important;
}

.delivery-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

/* Content Sections */
.delivery-section {
    margin-bottom: 0;
}

.delivery-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.delivery-section__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.delivery-subsection__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Lists */
.delivery-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.delivery-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.delivery-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-600);
    font-weight: bold;
    font-size: 1.1rem;
}

.delivery-legal-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.delivery-legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.delivery-legal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-600);
    font-weight: bold;
}

/* Custom Alert System - AdminLTE Bypass */
.delivery-alert {
    display: flex !important;
    align-items: flex-start !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    margin-bottom: 1.5rem !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

.delivery-alert__icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin-right: 1rem !important;
    font-size: 1.25rem !important;
}

.delivery-alert__content {
    flex: 1 !important;
}

.delivery-alert__title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.delivery-alert__text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Alert Variants */
.delivery-alert--info {
    background-color: var(--primary-100) !important;
    border-color: var(--primary-400) !important;
}

.delivery-alert--info .delivery-alert__icon {
    background-color: var(--primary-600) !important;
    color: #ffffff !important;
}

.delivery-alert--info .delivery-alert__title {
    color: var(--primary-700) !important;
}

.delivery-alert--info .delivery-alert__text {
    color: var(--primary-800) !important;
}

.delivery-alert--success {
    background-color: var(--success-50) !important;
    border-color: var(--success-300) !important;
}

.delivery-alert--success .delivery-alert__icon {
    background-color: var(--success-500) !important;
    color: #ffffff !important;
}

.delivery-alert--success .delivery-alert__title {
    color: var(--success-600) !important;
}

.delivery-alert--success .delivery-alert__text {
    color: var(--success-800) !important;
}

.delivery-alert--warning {
    background-color: var(--warning-50) !important;
    border-color: var(--warning-300) !important;
}

.delivery-alert--warning .delivery-alert__icon {
    background-color: var(--warning-500) !important;
    color: #ffffff !important;
}

.delivery-alert--warning .delivery-alert__title {
    color: var(--warning-600) !important;
}

.delivery-alert--warning .delivery-alert__text {
    color: var(--warning-700) !important;
}

.delivery-alert--danger {
    background-color: var(--danger-50) !important;
    border-color: var(--danger-400) !important;
}

.delivery-alert--danger .delivery-alert__icon {
    background-color: var(--danger-500) !important;
    color: #ffffff !important;
}

.delivery-alert--danger .delivery-alert__title {
    color: var(--danger-600) !important;
}

.delivery-alert--danger .delivery-alert__text {
    color: var(--danger-700) !important;
}

.delivery-alert--primary {
    background-color: var(--accent-50) !important;
    border-color: var(--accent-400) !important;
}

.delivery-alert--primary .delivery-alert__icon {
    background-color: var(--accent-600) !important;
    color: #ffffff !important;
}

.delivery-alert--primary .delivery-alert__title {
    color: var(--danger-800) !important;
}

.delivery-alert--primary .delivery-alert__text {
    color: var(--accent-800) !important;
}

.delivery-alert--secondary {
    background-color: var(--gray-50) !important;
    border-color: var(--gray-300) !important;
}

.delivery-alert--secondary .delivery-alert__icon {
    background-color: var(--gray-500) !important;
    color: #ffffff !important;
}

.delivery-alert--secondary .delivery-alert__title {
    color: var(--gray-800) !important;
}

.delivery-alert--secondary .delivery-alert__text {
    color: var(--gray-900) !important;
}

/* Condition Cards */
.condition-card {
    border: 2px solid;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.condition-card--accept {
    border-color: var(--success-500);
    background: linear-gradient(to bottom, var(--success-50) 0%, #ffffff 100%);
}

.condition-card--accept:hover {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.condition-card--reject {
    border-color: var(--danger-500);
    background: linear-gradient(to bottom, var(--danger-50) 0%, #ffffff 100%);
}

.condition-card--reject:hover {
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.2);
    transform: translateY(-2px);
}

.condition-card__header {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
}

.condition-card--accept .condition-card__header {
    color: var(--success-600);
    border-color: var(--success-500);
}

.condition-card--reject .condition-card__header {
    color: var(--danger-600);
    border-color: var(--danger-500);
}

.condition-card__header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.condition-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-card__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.condition-card--accept .condition-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-500);
    font-weight: bold;
}

.condition-card--reject .condition-card__list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-500);
    font-weight: bold;
}

/* Delivery Table */
.delivery-table {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.delivery-table thead {
    background-color: var(--gray-50);
}

.delivery-table th {
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-100);
    padding: 0.75rem;
}

.delivery-table td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--gray-600);
}

/* Procedure Steps */
.procedure-steps {
    position: relative;
}

.procedure-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.procedure-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, var(--primary-600) 0%, transparent 100%);
}

.procedure-step__number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.procedure-step__content {
    flex: 1;
}

.procedure-step__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.procedure-step__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.procedure-step__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.procedure-step__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.procedure-step__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-600);
    font-weight: bold;
}

/* Consumer Cards */
.consumer-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.consumer-card:hover {
    border-color: var(--primary-600);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.consumer-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #ffffff;
}

.consumer-card__content {
    flex: 1;
}

.consumer-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.consumer-card__subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.consumer-card__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.consumer-card__list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.consumer-card__list li {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-600);
    border-radius: 4px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.info-box__item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(to bottom, var(--gray-50) 0%, #ffffff 100%);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
}

.contact-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-600);
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card__item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.125rem;
}

.contact-card__item div {
    flex: 1;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Links */
.delivery-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.delivery-link:hover {
    color: var(--accent-500);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .delivery-hero__title {
        font-size: 2rem;
    }

    .delivery-hero__subtitle {
        font-size: 1rem;
    }

    .delivery-section__title {
        font-size: 1.5rem;
    }

    .delivery-subsection__title {
        font-size: 1.125rem;
    }

    .procedure-step {
        flex-direction: column;
    }

    .procedure-step__number {
        margin-bottom: 1rem;
    }

    .procedure-step:not(:last-child)::after {
        display: none;
    }

    .delivery-alert {
        flex-direction: column !important;
    }

    .delivery-alert__icon {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }

    .consumer-card {
        margin-bottom: 1rem;
    }

    .contact-card__item {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .delivery-hero {
        background: none;
        color: var(--gray-900);
    }

    .delivery-hero__title,
    .delivery-hero__subtitle {
        color: var(--gray-900);
    }

    .condition-card,
    .consumer-card,
    .contact-card {
        page-break-inside: avoid;
    }

    .procedure-step:not(:last-child)::after {
        display: none;
    }
}

/* ============================================
   Hero Animations - Unique Style: Fade In Right
   ============================================ */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.delivery-hero__badge {
    animation: fadeIn 0.5s ease-out;
}

.delivery-hero__title {
    animation: fadeInRight 0.7s ease-out 0.1s both;
}

.delivery-hero__subtitle {
    animation: fadeInRight 0.7s ease-out 0.2s both;
}
