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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
}

/* Index Page Styles */
body.index-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.index-page .container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

/* Results Page Styles */
body.results-page {
    background: #f5f7fa;
    padding: 20px;
}

body.results-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1 {
    color: #333;
    margin-bottom: 10px;
}

body.index-page h1 {
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Header Section (Results Page) */
.header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat {
    background: #f0f4ff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.stat strong {
    color: #667eea;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Form Styles (Index Page) */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.info {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    border-left: 4px solid #667eea;
}

/* Symbols Grid (Results Page) */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.symbol-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.symbol-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.symbol-mentions {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.posts-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.posts-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-item {
    margin-bottom: 8px;
    font-size: 13px;
}

.post-link {
    color: #555;
    text-decoration: none;
}

.post-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.no-results {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: #666;
}

.no-results h2 {
    margin-bottom: 10px;
}