/* Shared CSS for Holoul Tech Website */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FCD34D 100%);
}

.gradient-bg-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* iOS-style blur effect */
.ios-blur {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.72);
}

/* Widget Card Styles */
.widget-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.widget-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.widget-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Animated Gradient */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Pulsing Animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Touch-friendly buttons */
.touch-btn {
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Tool Card Hover Effect */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation */
nav {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f59e0b;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    padding: 16px 0;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #f59e0b;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #1f2937;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(to right, #f59e0b, #d97706);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Section */
.result-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.8;
    color: #1f2937;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

.result-box:hover {
    box-shadow: 0 8px 12px rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

/* Enhanced typography for formatted content */
.result-box h1,
.result-box h2,
.result-box h3,
.result-box h4 {
    line-height: 1.4;
    margin-top: 1rem;
}

.result-box h1 {
    font-size: 1.875rem;
}

.result-box h2 {
    font-size: 1.5rem;
}

.result-box h3 {
    font-size: 1.25rem;
}

.result-box p {
    margin-bottom: 1rem;
}

.result-box ul,
.result-box ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.result-box li {
    line-height: 1.8;
    padding: 0.25rem 0;
    position: relative;
}

.result-box strong {
    font-weight: 600;
}

.result-box code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.result-box pre {
    overflow-x: auto;
    direction: ltr;
}

.result-box blockquote {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
}

/* Smooth animations for content appearance */
.result-box > * {
    animation: fadeInUp 0.5s ease-out;
}

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

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.faq-question {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.faq-answer {
    color: #6b7280;
    padding-right: 20px;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .widget-card {
        backdrop-filter: blur(8px);
    }
    
    .touch-btn {
        min-height: 56px;
        font-size: 1.125rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.1), 0 4px 6px -2px rgba(251, 191, 36, 0.05);
}

.shadow-widget {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
