/* Tips Pages Common Styles */
:root {
    --neon-cyan: #00f6ff;
    --dark-bg: #0a192f;
    --card-bg: rgba(10, 25, 47, 0.95);
    --text-color: #e6f1ff;
}

body {
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--dark-bg) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(0deg, var(--dark-bg) 1px, transparent 1px) 0 0 / 50px 50px;
    background-color: rgba(10, 25, 47, 0.95);
    opacity: 0.1;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Glowing Grid Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--neon-cyan) 1px, transparent 1px) 0 0 / 100px 100px,
        linear-gradient(0deg, var(--neon-cyan) 1px, transparent 1px) 0 0 / 100px 100px;
    opacity: 0.05;
    z-index: -1;
    animation: gridGlow 4s ease-in-out infinite;
}

@keyframes gridGlow {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.1;
    }
}

.tips-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 246, 255, 0.2);
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow: hidden;
}

.tips-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 246, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.tips-content h2 {
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}

.tips-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    animation: lineGrow 1s ease-out forwards;
}

.tips-content ul {
    list-style: none;
    padding: 0;
}

.tips-content li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease-out forwards;
    background: rgba(0, 246, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 246, 255, 0.1);
    transition: all 0.3s ease;
}

.tips-content li:hover {
    transform: translateX(5px);
    background: rgba(0, 246, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 246, 255, 0.1);
}

.tips-content li::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--neon-cyan);
    animation: pulse 2s infinite;
}

/* Staggered animation delays for list items */
.tips-content li:nth-child(1) { animation-delay: 0.1s; }
.tips-content li:nth-child(2) { animation-delay: 0.2s; }
.tips-content li:nth-child(3) { animation-delay: 0.3s; }
.tips-content li:nth-child(4) { animation-delay: 0.4s; }
.tips-content li:nth-child(5) { animation-delay: 0.5s; }
.tips-content li:nth-child(6) { animation-delay: 0.6s; }
.tips-content li:nth-child(7) { animation-delay: 0.7s; }
.tips-content li:nth-child(8) { animation-delay: 0.8s; }
.tips-content li:nth-child(9) { animation-delay: 0.9s; }
.tips-content li:nth-child(10) { animation-delay: 1s; }

/* Back Button Styles */
.back-button {
    display: inline-block;
    margin: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--neon-cyan);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.2);
}

.back-button:hover {
    background: #00d4ff;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 246, 255, 0.3);
}

.back-button i {
    margin-right: 0.5rem;
}

/* Tip Card Styles */
.tip-card {
    background: rgba(0, 246, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(0, 246, 255, 0.2);
    transition: all 0.3s ease;
    animation: cardFloat 6s ease-in-out infinite;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 246, 255, 0.15);
}

.tip-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card h3 i {
    font-size: 1.2em;
}

/* Related Tips Section */
.related-tips {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 246, 255, 0.2);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow: hidden;
}

.related-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 246, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.related-tips h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.related-tips ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-tips li {
    background: rgba(0, 246, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.related-tips li:hover {
    transform: translateY(-3px);
    background: rgba(0, 246, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 246, 255, 0.1);
}

.related-tips a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tips a:hover {
    color: var(--neon-cyan);
}

.related-tips i {
    color: var(--neon-cyan);
    font-size: 1.2em;
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--neon-cyan);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 246, 255, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 246, 255, 0.4);
}

.floating-back-btn i {
    transition: transform 0.3s ease;
}

.floating-back-btn:hover i {
    transform: translateX(-3px);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-cyan), #00d4ff);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* Tip Link Styles */
.tip-link {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-cyan);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 246, 255, 0.1);
    transition: all 0.3s ease;
}

.tip-link:hover {
    background: rgba(0, 246, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 246, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes lineGrow {
    from { width: 0; }
    to { width: 100%; }
}

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

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

@keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Tip Note Styles */
.tip-note {
    background: rgba(0, 246, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 246, 255, 0.2);
}

.tip-note strong {
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.tip-note p {
    margin: 0;
    color: var(--text-color);
}

/* List Item Styles */
.tips-content li strong {
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.tips-content li p {
    margin: 0;
    color: var(--text-color);
} 