/* Global Stylesheet for heyFordy.de */

:root {
    /* Restore legacy gradient colors */
    --bg-gradient: linear-gradient(-45deg, #39ff0069, #ff4100, #ffa600, #dd4700, #0049ff69);
    --box-bg: rgba(30, 30, 30, 0.9);
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --header-bg: rgba(18, 18, 18, 0.85);
    --border-radius: 12px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    /* Legacy background animation settings */
    background: var(--bg-gradient);
    background-size: 200% 200%;
    animation: gradientBG 4s ease infinite;
    
    color: var(--text-main);
    font-family: 'Rubik', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(to right, #6666ff, #0099ff , #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
    font-weight: 700;
}

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

a { text-decoration: none; color: inherit; }

/* Layout Components */
header {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.header-brand img { height: 32px; border-radius: 6px; }

main { flex: 1; padding: 90px 20px 40px; max-width: 800px; margin: 0 auto; width: 100%; }

.content-box {
    background: var(--box-bg);
    border-radius: var(--border-radius);
    padding: 20px; margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    animation: slideUp 0.5s ease-out forwards;
}

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

.box-title {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px;
}

/* Link Grid */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }

.link-btn {
    background: rgba(255,255,255,0.05); color: var(--text-main);
    padding: 15px; border-radius: 8px; text-align: center;
    transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.link-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.link-btn i { font-size: 1.5rem; margin-bottom: 5px; }

/* Buttons */
.round-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: white;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: 1.2rem; transition: 0.2s;
}
.round-btn:hover { background: rgba(255,255,255,0.3); }

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95); padding: 30px 20px;
    text-align: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-source-btn {
    background: #111; color: #888; border: 1px solid #333;
    padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-family: monospace;
    display: inline-block; margin: 4px; transition: 0.2s;
}
.footer-source-btn:hover { color: #fff; border-color: #666; }
.footer-thanks { margin-top: 15px; color: #666; font-size: 0.8rem; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
.modal-content { background: #222; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px; border: 1px solid #444; }
.modal input { width: 100%; padding: 10px; margin: 8px 0; background: #111; border: 1px solid #333; color: white; border-radius: 6px; }
.modal-btn { background: #444; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; margin-right: 5px; }
.modal-btn.save { background: #28a745; }
