/* EVE Online Industry Calculator - Styles */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --danger-color: #ef4444;
    
    --bg-primary: #0a0e1a;
    --bg-secondary: #131827;
    --bg-card: #1a1f35;
    --bg-card-hover: #202742;
    
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: #2d3548;
    --border-accent: #3b4663;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Star Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%23fff" opacity="0.3"/></svg>') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="%2300d4ff" opacity="0.2"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1" fill="%23ff6b35" opacity="0.1"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.header-content {
    text-align: center;
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon {
    font-size: 1.5rem;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control:hover {
    border-color: var(--border-accent);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Skills Container */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

.skill-input-group {
    display: flex;
    flex-direction: column;
}

.skill-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0.3px;
}

.skill-description {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}

.skill-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-select {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input {
    padding-right: 2.5rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-accent);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    margin-top: -8px;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary-color);
}

.search-result-name {
    font-weight: 600;
    display: block;
}

.search-result-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Selected Item */
.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-clear {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ME Controls */
.me-control-group {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-accent);
}

.me-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.btn-me {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    font-weight: bold;
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-me:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.btn-me:active {
    transform: scale(0.95);
}

.me-display {
    text-align: center;
    min-width: 150px;
}

.me-value-large {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.me-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.me-presets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-preset {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
}

.btn-preset:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-card-hover);
}

.btn-preset.active {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

.me-info {
    display: block;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    outline: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.help-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 1.2rem;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* PI Production Breakdown */
.pi-breakdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--warning-color);
    border-radius: 8px;
}

.pi-breakdown-title {
    color: var(--warning-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.pi-breakdown-content {
    color: var(--text-primary);
}

.pi-chain {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pi-chain-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pi-chain-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pi-materials-tree {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.pi-materials-tree h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.pi-materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pi-material-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    align-items: center;
}

.pi-material-name {
    color: var(--text-primary);
    font-weight: 500;
}

.pi-material-qty {
    color: var(--primary-color);
    text-align: right;
    font-weight: 600;
}

.pi-material-cost {
    color: var(--success-color);
    text-align: right;
    font-weight: 600;
}

.pi-production-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pi-info-box {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pi-info-box strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.pi-note {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pi-note ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.pi-note li {
    margin-bottom: 0.25rem;
}

/* Blueprint Info */
.blueprint-info {
    font-size: 0.95rem;
}

.placeholder-text {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.info-item {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.materials-list-info {
    list-style: none;
    margin-top: 0.5rem;
}

.materials-list-info li {
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.material-name {
    color: var(--text-primary);
}

.material-quantity {
    color: var(--primary-color);
    font-weight: 600;
}

/* Results */
.results-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-item {
    text-align: center;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Materials Table */
.materials-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.materials-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.materials-table thead tr {
    background: var(--bg-secondary);
}

.materials-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-color);
}

.materials-table tbody tr {
    background: var(--bg-primary);
    transition: var(--transition);
}

.materials-table tbody tr:hover {
    background: var(--bg-secondary);
}

.materials-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.materials-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Total Cost */
.total-cost {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

/* Profit Analysis */
.profit-analysis {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid;
    animation: fadeIn 0.5s ease-out;
}

.profit-analysis.profitable {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
    border-color: var(--success-color);
}

.profit-analysis.unprofitable {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-color: var(--danger-color);
}

.profit-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid currentColor;
}

.profit-header.profitable {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success-color);
}

.profit-header.unprofitable {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.profit-status {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profit-icon {
    font-size: 2rem;
}

.profit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.profit-item {
    text-align: center;
}

.profit-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.profit-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.profit-value.positive {
    color: var(--success-color);
}

.profit-value.negative {
    color: var(--danger-color);
}

.profit-value.neutral {
    color: var(--primary-color);
}

.profit-margin {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.profit-margin.high {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success-color);
}

.profit-margin.low {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning-color);
}

.profit-margin.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.profit-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.profit-breakdown-item {
    flex: 1;
    min-width: 150px;
}

.profit-breakdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profit-breakdown-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Add Blueprint Form */
.add-blueprint-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.materials-list {
    margin-bottom: 1rem;
}

.material-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.material-item .form-control {
    flex: 1;
}

.material-id {
    max-width: 150px;
}

.material-qty {
    max-width: 150px;
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.link-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.link-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-small {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* Scrollbar Styling */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #00b8e6;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .me-controls {
        gap: 1rem;
    }
    
    .btn-me {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .me-value-large {
        font-size: 2.5rem;
    }
    
    .me-display {
        min-width: 100px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .results-section {
    animation: fadeIn 0.5s ease-out;
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

