/* Fortune Telling Plugin Styles */
.fortune-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.fortune-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.fortune-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.fortune-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48cae4, #9775fa);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 4s ease infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fortune-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.fortune-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.birth-date-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.birth-date-container select {
    flex: 1;
}

.birth-date-container input[type="number"] {
    flex: 1.5;
}

@media (max-width: 768px) {
    .birth-date-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .birth-date-container select,
    .birth-date-container input[type="number"] {
        width: 100%;
    }
}

.form-help {
    font-size: 0.9em;
    color: #718096;
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
}

.api-status {
    margin: 20px 0;
    text-align: center;
}

.api-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

.api-error {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #9775fa;
    box-shadow: 0 0 0 3px rgba(151, 117, 250, 0.1);
    transform: translateY(-2px);
}

.fortune-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #9775fa, #f093fb);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fortune-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(151, 117, 250, 0.4);
}

.fortune-btn:active {
    transform: translateY(-1px);
}

.fortune-btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.fortune-btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    opacity: 0;
    animation: none;
    transition: opacity 0.3s ease;
}

.fortune-btn.loading .btn-loader {
    opacity: 1;
    animation: spin 1s linear infinite;
}

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

.fortune-results {
    margin-top: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.prediction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-left: 5px solid #9775fa;
    animation: slideInRight 0.6s ease-out backwards;
    transition: transform 0.3s ease;
}

.prediction-card:hover {
    transform: translateX(5px);
}

.prediction-card:nth-child(1) { animation-delay: 0.1s; }
.prediction-card:nth-child(2) { animation-delay: 0.2s; }
.prediction-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prediction-title {
    color: #4a5568;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prediction-content {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.05em;
}

.score-bar {
    margin-top: 15px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.score-sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #9775fa 0%, #f093fb 25%, #48cae4 50%, #feca57 75%, #ff6b6b 100%);
    position: relative;
    animation: sphereRotate 3s linear infinite;
    box-shadow: 
        0 0 20px rgba(151, 117, 250, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.score-sphere::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 25%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sphereGlow 2s ease-in-out infinite alternate;
}

.score-sphere::after {
    content: attr(data-score);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@keyframes sphereRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sphereGlow {
    from { 
        opacity: 0.6;
        transform: scale(1);
    }
    to { 
        opacity: 1;
        transform: scale(1.2);
    }
}

.score-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #9775fa;
    font-size: 0.9em;
}

/* Remove pagination styles */
.fortune-pagination {
    display: none;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ffa8a8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fortune-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    animation: twinkle 2s infinite ease-in-out alternate;
}

.star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.star:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1.5s; }
.star:nth-child(5) { bottom: 40%; left: 80%; animation-delay: 2s; }

@keyframes twinkle {
    from { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fortune-container {
        margin: 10px;
        padding: 20px;
    }
    
    .fortune-title {
        font-size: 2em;
    }
    
    .fortune-subtitle {
        font-size: 1em;
    }
    
    .fortune-form {
        padding: 20px;
    }
    
    .prediction-card {
        padding: 20px;
    }
    
    .fortune-pagination {
        gap: 5px;
    }
    
    .page-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Loading Animation */
.fortune-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.loading-crystal {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #9775fa, #f093fb);
    border-radius: 50%;
    position: relative;
    animation: crystalSpin 2s linear infinite;
}

.loading-crystal::before {
    content: '🔮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    animation: crystalGlow 1s ease-in-out infinite alternate;
}

@keyframes crystalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes crystalGlow {
    from { 
        filter: brightness(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to { 
        filter: brightness(1.5);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}