/* doggl Gesundheitscheck Plugin Styles - Vollständiges CSS ohne Tailwind */

.doggl-health-container {
    line-height: 1.6;
    color: #374151;
    margin: 0 auto;
}

/* Layout & Grid */
.doggl-flex {
    display: flex;
}

.doggl-flex-col {
    flex-direction: column;
}

.doggl-flex-row {
    flex-direction: row;
}

.doggl-justify-center {
    justify-content: center;
}

.doggl-justify-between {
    justify-content: space-between;
}

.doggl-items-center {
    align-items: center;
}

.doggl-items-start {
    align-items: flex-start;
}

.doggl-space-y-2 > * + * {
    margin-top: 8px;
}

.doggl-space-y-3 > * + * {
    margin-top: 12px;
}

.doggl-space-y-4 > * + * {
    margin-top: 16px;
}

.doggl-space-y-6 > * + * {
    margin-top: 24px;
}

.doggl-space-x-4 > * + * {
    margin-left: 16px;
}

.doggl-grid { 
    display: grid;
}

.doggl-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.doggl-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doggl-col-span-2 {
    grid-column: span 2;
}

.doggl-gap-4 {
    gap: 16px;
}

.doggl-gap-6 {
    gap: 24px;
}

/* Spacing */
.doggl-p-3 { padding: 12px; }
.doggl-p-4 { padding: 16px; }
.doggl-p-6 { padding: 24px; }
.doggl-p-8 { padding: 32px; }

.doggl-px-3 { padding-left: 12px; padding-right: 12px; }
.doggl-px-4 { padding-left: 16px; padding-right: 16px; }
.doggl-py-1 { padding-top: 4px; padding-bottom: 4px; }
.doggl-py-2 { padding-top: 8px; padding-bottom: 8px; }
.doggl-py-3 { padding-top: 12px; padding-bottom: 12px; }

.doggl-m-0 { margin: 0; }
.doggl-mb-1 { margin-bottom: 4px; }
.doggl-mb-2 { margin-bottom: 8px; }
.doggl-mb-3 { margin-bottom: 12px; }
.doggl-mb-4 { margin-bottom: 16px; }
.doggl-mb-6 { margin-bottom: 24px; }
.doggl-mb-8 { margin-bottom: 32px; }
.doggl-mt-1 { margin-top: 4px; }
.doggl-mt-3 { margin-top: 12px; }
.doggl-mt-4 { margin-top: 16px; }
.doggl-mt-6 { margin-top: 24px; }
.doggl-mt-8 { margin-top: 32px; }
.doggl-mr-2 { margin-right: 8px; }
.doggl-mr-3 { margin-right: 12px; }
.doggl-ml-2 { margin-left: 8px; }

/* Typography */
.doggl-text-xs { font-size: 12px; }
.doggl-text-sm { font-size: 14px; }
.doggl-text-base { font-size: 16px; }
.doggl-text-lg { font-size: 18px; }
.doggl-text-xl { font-size: 20px; }
.doggl-text-2xl { font-size: 24px; }
.doggl-text-3xl { font-size: 30px; }
.doggl-text-5xl { font-size: 48px; }

.doggl-font-medium { font-weight: 500; }
.doggl-font-semibold { font-weight: 600; }
.doggl-font-bold { font-weight: 700; }
.doggl-leading-normal { line-height: 1.5; }

.doggl-text-center { text-align: center; }
.doggl-text-left { text-align: left; }

/* Colors */
.doggl-text-gray-500 { color: #6b7280; }
.doggl-text-gray-600 { color: #4b5563; }
.doggl-text-gray-700 { color: #374151; }
.doggl-text-gray-800 { color: #1f2937; }
.doggl-text-gray-900 { color: #111827; }
.doggl-text-white { color: #ffffff; }
.doggl-text-red-600 { color: #dc2626; }
.doggl-text-red-700 { color: #b91c1c; }
.doggl-text-amber-600 { color: #d97706; }
.doggl-text-amber-800 { color: #92400e; }
.doggl-text-blue-600 { color: #1d4ed8; }
.doggl-text-blue-800 { color: #1e40af; }
.doggl-text-green-800 { color: #065f46; }

.doggl-bg-white { background-color: #ffffff; }
.doggl-bg-gray-50 { background-color: #f9fafb; }
.doggl-bg-gray-100 { background-color: #f3f4f6; }
.doggl-bg-gray-200 { background-color: #e5e7eb; }
.doggl-bg-gray-300 { background-color: #d1d5db; }
.doggl-bg-blue-50 { background-color: #eff6ff; }
.doggl-bg-green-50 { background-color: #f0fdf4; }
.doggl-bg-purple-50 { background-color: #faf5ff; }

/* doggl Brand Colors */
.doggl-bg-primary { background-color: #404697; }
.doggl-bg-light { background-color: rgba(204, 207, 244, 0.3); }
.doggl-bg-light-soft { background-color: rgba(204, 207, 244, 0.2); }
.doggl-bg-accent { background-color: #277353; }
.doggl-text-primary { color: #404697; }
.doggl-text-accent { color: #277353; }

.doggl-border-primary { border-color: #404697; }
.doggl-border-accent { border-color: #277353; }

/* Cards & Containers */
.doggl-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.doggl-rounded-lg { border-radius: 8px; }
.doggl-rounded-full { border-radius: 9999px; }

.doggl-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.doggl-shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Borders */
.doggl-border { border: 1px solid #e5e7eb; }
.doggl-border-2 { border: 2px solid #e5e7eb; }
.doggl-border-gray-200 { border-color: #e5e7eb; }
.doggl-border-gray-300 { border-color: #d1d5db; }

/* Buttons */
.doggl-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.doggl-button:hover {
    transform: scale(1.05);
}

.doggl-button:active {
    transform: scale(0.98);
}

.doggl-button-primary {
    background-color: #404697;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(64, 70, 151, 0.2);
}

.doggl-button-primary:hover {
    background-color: #cccff4;
    color: #363d82;
    box-shadow: 0 4px 8px rgba(64, 70, 151, 0.3);
}

.doggl-button-secondary {
    background-color: #6b7280;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.doggl-button-secondary:hover {
    background-color: #4b5563;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.doggl-button-accent {
    background-color: #277353;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(39, 115, 83, 0.2);
}

.doggl-button-accent:hover {
    background-color: #1f5a42;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(39, 115, 83, 0.3);
}

.doggl-button:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Skip Button - als unterstrichener Text */
.doggl-skip-btn {
    background: none;
    border: none;
    color: #404697;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px;
    transition: color 0.2s ease;
    box-shadow: none;
}

.doggl-skip-btn:hover {
    color: #363d82;
    text-decoration: underline;
}

/* Selection Cards */
.doggl-selection-card {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    outline: none;
}

.doggl-selection-card:hover {
    border-color: #404697;
    background-color: rgba(204, 207, 244, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 70, 151, 0.15);
}

.doggl-selection-card:focus {
    border-color: #404697;
    box-shadow: 0 0 0 3px rgba(64, 70, 151, 0.1);
}

.doggl-selection-card.selected {
    border-color: #404697;
    background-color: rgba(204, 207, 244, 0.2);
    box-shadow: 0 8px 25px rgba(64, 70, 151, 0.2);
    transform: translateY(-1px);
}

.doggl-selection-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doggl-selection-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.doggl-selection-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.doggl-selection-text {
    flex: 1;
}

.doggl-selection-label {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    margin-bottom: 4px;
}

.doggl-selection-description {
    font-size: 14px;
    color: #6b7280;
}

.doggl-selection-check {
    background-color: #404697;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    animation: checkmark-bounce 0.3s ease-out;
}

@keyframes checkmark-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Progress Bar */
.doggl-progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.doggl-progress-bar {
    background: linear-gradient(90deg, #404697 0%, #277353 100%);
    height: 8px;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 17%;
}

.doggl-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Forms */
.doggl-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.4;
    min-height: 52px;
    background-color: #ffffff;
}

.doggl-input:focus {
    outline: none;
    border-color: #404697;
    box-shadow: 0 0 0 3px rgba(64, 70, 151, 0.1);
    background-color: #ffffff;
}

.doggl-input:hover {
    border-color: #9ca3af;
}

.doggl-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Info Boxes */
.doggl-info-box {
    background-color: rgba(204, 207, 244, 0.2);
    border: 1px solid rgba(64, 70, 151, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.doggl-warning-box {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.doggl-success-box {
    background-color: #d1fae5;
    border: 1px solid #277353;
    border-radius: 8px;
    padding: 16px;
}

.doggl-error-box {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
}

/* Trust Indicators */
.doggl-trust-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s ease;
    color: #1f2937;
}

.doggl-trust-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doggl-trust-green {
    background-color: rgba(39, 115, 83, 0.1);
    color: #277353;
    border-color: rgba(39, 115, 83, 0.2);
}

.doggl-trust-primary {
    background-color: rgba(204, 207, 244, 0.3);
    color: #404697;
    border-color: rgba(64, 70, 151, 0.2);
}

/* Symptom Questions */
.doggl-symptom-question {
    margin-bottom: 24px;
}

.doggl-symptom-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.doggl-symptom-options {
    display: grid;
    gap: 8px;
}

.doggl-symptom-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.doggl-symptom-btn:hover {
    border-color: #404697;
    background-color: rgba(204, 207, 244, 0.1);
    transform: translateY(-1px);
}

.doggl-symptom-btn.selected {
    border-color: #404697;
    background-color: rgba(204, 207, 244, 0.2);
    box-shadow: 0 2px 8px rgba(64, 70, 151, 0.15);
}

.doggl-symptom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doggl-symptom-label {
    color: #111827;
    font-size: 14px;
}

/* Email Section */
.doggl-email-section {
    margin-bottom: 20px;
}

.doggl-email-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.doggl-email-privacy {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.doggl-email-validation {
    font-size: 12px;
    margin-top: 4px;
}

/* Result Display */
.doggl-result-grid {
    display: block;
}

.doggl-result-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.doggl-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.doggl-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.doggl-result-title::before {
    content: "•";
    color: #404697;
    font-size: 24px;
    margin-right: 12px;
}

.doggl-recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doggl-recommendation-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 20px;
    color: #374151;
    line-height: 1.5;
}

.doggl-recommendation-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #404697;
    font-weight: bold;
}

.doggl-recommendation-list li:last-child {
    border-bottom: none;
}

/* Notifications */
.doggl-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doggl-notification-show {
    transform: translateX(0);
}

.doggl-notification-success {
    background-color: #277353;
}

.doggl-notification-error {
    background-color: #ef4444;
}

.doggl-notification-info {
    background-color: #404697;
}

/* Utilities */
.doggl-hidden { display: none !important; }
.doggl-block { display: block; }
.doggl-inline-block { display: inline-block; }
.doggl-w-full { width: 100%; }
.doggl-h-2 { height: 8px; }

/* Responsive Design */
@media (max-width: 640px) {
    .doggl-trust-indicator {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .doggl-selection-card {
        padding: 12px;
    }
    
    .doggl-selection-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .doggl-selection-label {
        font-size: 14px;
    }
    
    .doggl-selection-description {
        font-size: 12px;
    }
    
    .doggl-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .doggl-input {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
    }
    
    .doggl-flex-col-mobile {
        flex-direction: column;
    }
    
    .doggl-space-y-2-mobile > * + * {
        margin-top: 8px;
        margin-left: 0;
    }
    
    .doggl-grid-cols-1-mobile {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .doggl-text-sm-mobile {
        font-size: 12px;
    }
    
    .doggl-text-xs-mobile {
        font-size: 11px;
    }

    .doggl-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (min-width: 641px) {
    .doggl-grid-cols-2-sm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .doggl-flex-row-sm {
        flex-direction: row;
    }
    
    .doggl-space-x-4-sm > * + * {
        margin-left: 16px;
        margin-top: 0;
    }
    
    .doggl-text-sm-sm {
        font-size: 14px;
    }
    
    .doggl-text-base-sm {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .doggl-button,
    .doggl-navigation,
    .doggl-notification {
        display: none !important;
    }
    
    .doggl-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .doggl-result-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Loading Animation */
.doggl-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #404697;
    border-radius: 50%;
    animation: doggl-spin 1s linear infinite;
}

/* Loading Dots Animation */
.doggl-loading-dots {
    display: inline-block;
}
.doggl-loading-dots span {
    display: inline-block;
    animation: doggl-blink 1.4s infinite both;
}
.doggl-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.doggl-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes doggl-blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

@keyframes doggl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.doggl-fade-in {
    animation: doggl-fadeIn 0.3s ease-in;
}

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

/* Custom Scrollbar */
.doggl-health-container::-webkit-scrollbar {
    width: 8px;
}

.doggl-health-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.doggl-health-container::-webkit-scrollbar-thumb {
    background: #404697;
    border-radius: 4px;
}

.doggl-health-container::-webkit-scrollbar-thumb:hover {
    background: #363d82;
}

/* Accessibility Improvements */
.doggl-selection-card:focus-visible {
    outline: 2px solid #404697;
    outline-offset: 2px;
}

.doggl-button:focus-visible {
    outline: 2px solid #404697;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .doggl-selection-card {
        border-width: 3px;
    }
    
    .doggl-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .doggl-selection-card,
    .doggl-button,
    .doggl-progress-bar,
    .doggl-notification {
        transition: none;
        animation: none;
    }
    
    .doggl-progress-bar::after {
        display: none;
    }
}