/* css/style.css - Custom Styling & Animations for Netcup VPS Site */

body {
    font-family: 'Titillium Web', 'Inter', system-ui, -apple-system, sans-serif;
}

[x-cloak] {
    display: none !important;
}

/* Official Netcup Card Price Block Gradient */
.netcup-price-gradient {
    background: linear-gradient(180deg, #1fa197 0%, #0c5763 45%, #182348 100%) !important;
}

.netcup-card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.netcup-card-shadow:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* Custom Action Button */
.btn-cyan {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 200, 190, 0.15);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 190, 0.35);
}

/* Card Entrance Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-fade-in {
    animation: cardFadeIn 0.4s ease-out forwards;
}

/* Custom Scrollbar for Compare Table */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #00c8be;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #32aaa0;
}

/* Sticky Column shadow for comparison table */
.sticky-col-shadow {
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
}

/* Official Netcup SVG Checkmark - exact match to netcup.eu card icons */
.nc-check {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2332aaa0' stroke='%2332aaa0' viewBox='0 0 512 512'%3E%3Cpath d='m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   NATIVE CSS CARD COMPONENT (Image 2 Style)
   Rendered by renderCards() in app.js
   Exact visual match to Image 2 target card
   ═══════════════════════════════════════════════ */

#nc-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    min-height: 480px !important;
}

@media (max-width: 767px) {
    #nc-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 479px) {
    #nc-cards-grid { grid-template-columns: 1fr !important; }
}

#nc-cards-grid .nc-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease !important;
    position: relative !important;
}

#nc-cards-grid .nc-card:hover {
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 200, 190, 0.08) !important;
    transform: translateY(-4px) !important;
    border-color: #00c8be !important;
}

#nc-cards-grid .nc-card-body {
    padding: 26px 26px 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

#nc-cards-grid .nc-card-title {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    color: #1e2855 !important;
    margin: 0 0 18px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

#nc-cards-grid .nc-spec-list {
    list-style: none !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    flex: 1 !important;
}

#nc-cards-grid .nc-spec-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
}

#nc-cards-grid .nc-spec-item:last-child { margin-bottom: 0 !important; }

#nc-cards-grid .nc-spec-item span {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 18px !important;
    color: #1e2855 !important;
    font-weight: 400 !important;
}

#nc-cards-grid .nc-icon-check {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    stroke: #00c8be !important;
    stroke-width: 2.5 !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}

#nc-cards-grid .nc-details-link {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #00c8be !important;
    text-decoration: none !important;
    display: inline-block !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

#nc-cards-grid .nc-details-link:hover {
    color: #0c5763 !important;
    text-decoration: underline !important;
    transform: translateX(2px) !important;
}

/* Price footer floating card style (Image 2 design) */
#nc-cards-grid .nc-card-price {
    background: linear-gradient(180deg, #1fa197 0%, #0c5763 45%, #182348 100%) !important;
    border-radius: 12px !important;
    margin: 0 12px 12px 12px !important;
    padding: 20px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(12, 87, 99, 0.25) !important;
}

#nc-cards-grid .nc-price-label {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 2px !important;
}

#nc-cards-grid .nc-price-amount {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 56px !important;
    font-weight: 600 !important;
    color: #beff82 !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

#nc-cards-grid .nc-price-vat {
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 18px !important;
}

#nc-cards-grid .nc-card-btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 480px) {
    #nc-cards-grid .nc-card-btn-group {
        flex-direction: column !important;
    }
}

#nc-cards-grid .nc-voucher-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    user-select: none !important;
}

#nc-cards-grid .nc-voucher-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.18) 100%) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15) !important;
}

#nc-cards-grid .nc-voucher-btn:active {
    transform: translateY(0) scale(0.97) !important;
}

#nc-cards-grid .nc-voucher-btn .nc-v-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)) !important;
    transition: transform 0.2s ease !important;
}

#nc-cards-grid .nc-voucher-btn:hover .nc-v-icon {
    transform: scale(1.12) rotate(-3deg) !important;
}

#nc-cards-grid .nc-order-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Titillium Web', 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #00c8be !important;
    border: 1px solid #00c8be !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
    white-space: nowrap !important;
    user-select: none !important;
}

#nc-cards-grid .nc-order-btn:hover {
    background-color: #00c8be !important;
    color: #182348 !important;
    transform: translateY(-1px) !important;
}

#nc-cards-grid .nc-order-btn:active {
    transform: translateY(0) scale(0.97) !important;
}

/* ═══════════════════════════════════════════════
   GLOBAL TOAST NOTIFICATION COMPONENT
   ═══════════════════════════════════════════════ */
.global-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e2855;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 200, 190, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    text-align: center;
}

.global-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.global-toast-icon {
    width: 20px;
    height: 20px;
    color: #beff82;
    flex-shrink: 0;
}

/* Compare table interactive highlight */
.compare-row {
    transition: background-color 0.15s ease !important;
}
.compare-row:hover td {
    background-color: rgba(0, 200, 190, 0.04) !important;
}
.compare-row:hover td:first-child {
    background-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════
   BLOG ARTICLE CALLOUT & QUICK-ANSWER BOX STYLES
   Ensures robust contrast across all devices
   ═══════════════════════════════════════════════ */

#quick-answer,
section#quick-answer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e2855 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 1rem !important;
}

#quick-answer .text-emerald-400 {
    color: #34d399 !important;
}

#quick-answer .text-slate-200,
#quick-answer ul,
#quick-answer li {
    color: #e2e8f0 !important;
}

#quick-answer strong {
    color: #ffffff !important;
}

#quick-answer code {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #38bdf8 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875em !important;
}

/* Dark Callout Action Banners in Blog */
.article-dark-banner,
.bg-netcup-gradient {
    background: linear-gradient(135deg, #1e2855 0%, #056473 60%, #32aaa0 100%) !important;
    color: #ffffff !important;
}

.article-dark-banner *,
.bg-netcup-gradient * {
    color: #ffffff;
}

.bg-netcup-dark {
    background-color: #1e2855 !important;
    color: #ffffff !important;
}

/* Light Alert Boxes in Articles */
.article-content .bg-amber-50 {
    background-color: #fffbeb !important;
    border-left: 4px solid #f59e0b !important;
    color: #78350f !important;
}

.article-content .bg-blue-50,
.article-content .bg-blue-50\/60 {
    background-color: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #1e3a8a !important;
}

.article-content .bg-red-50 {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444 !important;
    color: #7f1d1d !important;
}

/* Privacy & Legal Content Prose Lists */
.prose ul.list-disc {
    list-style-type: disc !important;
    padding-left: 1.25rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.prose ul.list-disc li {
    padding-left: 0.25rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.6 !important;
}
