/**
 * Formidable Download Unlock Simple - Styles
 */

/* Formular Wrapper */
.fdu-form-wrapper {
    transition: opacity 0.3s ease-in-out;
}

/* Download-Bereich */
.fdu-download-area {
    padding: 40px;
    background: var(--wp--preset--color--secondary);
    margin: 30px 0;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

.fdu-download-area > p {
    display: none;
}

/* Loading State / Spinner */
.fdu-loading {
    text-align: center;
    padding: 3em 2em;
    color: #888;
    font-size: 14px;
}

.fdu-loading p {
    margin: 12px 0 0 0;
}

.fdu-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--wp--preset--color--primary, #667eea);
    border-radius: 50%;
    animation: fdu-spin 0.7s linear infinite;
}

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

/* Erfolgs-Nachricht */
.fdu-success-message {
    background: var(--wp--preset--color--primary);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fdu-success-message strong {
    font-weight: 700;
}

/* Download-Links Styling */
.fdu-download-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fdu-download-area li {
    padding: 0;
    margin-bottom: 15px;
}

.fdu-download-area a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: var(--wp--preset--color--background);
    color: var(--wp--preset--color--foreground);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.fdu-download-area a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: var(--wp--preset--color--primary);
    color: white;
}

.fdu-download-area a:hover::before {
    color: white;
}

/* Download-Icon */
.fdu-download-area a::before {
    content: "⬇";
    font-size: 24px;
    color: var(--wp--preset--color--primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Alternative: Moderne Icon-Version */
.fdu-download-area a.modern-icon::before {
    content: "📥";
}

/* Zusätzlicher Text-Bereich */
.fdu-download-area p {
    color: #555;
    line-height: 1.6;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Body-Klasse wenn freigeschaltet */
body.fdu-unlocked .fdu-form-wrapper {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fdu-download-area {
        padding: 25px 20px;
    }
    
    .fdu-download-area h3 {
        font-size: 22px;
    }
    
    .fdu-download-area a {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .fdu-download-area a::before {
        font-size: 20px;
    }
}

/* Lade-Animation (optional) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fdu-download-area {
    animation: fadeIn 0.5s ease-in;
}

/* Print-Styles (Downloads sollten nicht gedruckt werden) */
@media print {
    .fdu-download-area {
        display: none !important;
    }
}