/* Technologist.Services Tools - Unified Stylesheet v1.3.0 */
/* Last Updated: 2025-10-28 */
/* Author: Doug Hesseltine */
/* Copyright (C) Technologist.Services 2025 */

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

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3e 50%, #0a0e27 100%);
    color: #00ff88;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
}

.logo {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.tagline {
    color: #00d4ff;
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.tech-label {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 5px;
}

.category-section {
    margin: 40px 0;
}

.category-title {
    color: #00d4ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #00ff88;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: rgba(26, 29, 62, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 0.1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.card h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 4px;
    font-size: 0.5em;
    color: #00ff88;
    font-weight: normal;
}

.card p {
    margin-bottom: 15px;
    color: #00ff88;
    opacity: 0.9;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
}

.card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 5px;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tool-link:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    color: #00d4ff;
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    margin-top: 40px;
    color: #6c757d;
}

.bg-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

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

/* ===== Content Card (for tool pages) ===== */
.content-card {
    background: rgba(26, 29, 62, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 0.1;
}

.content-card h2 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.content-card p {
    color: #00ff88;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ===== Code Blocks ===== */
.code-block {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block code {
    color: #00ff88;
    font-size: 0.9em;
    line-height: 1.5;
    font-family: 'Courier New', 'Consolas', monospace;
    display: block;
    white-space: pre;
}

/* ===== Buttons ===== */
.copy-btn,
.calc-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 5px;
    color: #00ff88;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-family: 'Courier New', 'Consolas', monospace;
}

.copy-btn:hover,
.calc-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* ===== Back to Tools Link ===== */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 5px;
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.95em;
}

.back-link:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    transform: translateX(-3px);
}

.back-link.bottom {
    margin-top: 30px;
    margin-bottom: 0;
    display: block;
}

/* ===== Calculator Styles ===== */
.calculator-card {
    background: rgba(26, 29, 62, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00d4ff;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 5px;
    color: #00ff88;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

#output {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
    color: #00ff88;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#output.active {
    opacity: 1;
    max-height: 500px;
}

#output p {
    margin: 8px 0;
    line-height: 1.6;
}

/* ===== Warning Styles ===== */
.warning {
    background: rgba(255, 100, 0, 0.1);
    border: 1px solid rgba(255, 100, 0, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    color: #ff9933;
}

.warning strong {
    color: #ffaa44;
    font-weight: bold;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 30px 15px 15px;
    }
    
    .logo {
        font-size: 2em;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .content-card,
    .calculator-card {
        padding: 15px;
    }
    
    .form-group input {
        font-size: 16px;
    }
}
