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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', monospace;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    line-height: 1.6;
}

/* New layout for standard content pages */
.content-page .container {
    display: block;
}

.content-page main {
    display: block;
    text-align: left;
}

/* Make the header left-aligned on content pages */
.content-page header {
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background: transparent;
    position: relative;
}

.logo {
    font-size: 3.2rem;
    font-weight: 400;
    color: #00ff41;
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 255, 65, 0.2));
}

.logo::before {
    content: '>';
    color: #00ff41;
    opacity: 0.7;
    margin-right: 0.5ch;
}

/* Removed trailing underscore - keeping only the animated one in the middle
.logo::after {
    content: '_';
    animation: blink 1.5s infinite;
    color: #00ff41;
    opacity: 0.8;
}
*/

.animated-underscore {
    display: inline-block;
    animation: blink 1.5s infinite;
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Logo link styling to match exact logo appearance */
.logo-link {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-family: inherit;
    text-shadow: inherit;
    filter: inherit;
}

.logo-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.logo-link:visited {
    color: inherit !important;
}

.tagline {
    font-size: 0.95rem;
    color: #4ade80;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.tagline::before {
    content: '// ';
    color: #22c55e;
    opacity: 0.6;
}

.search-container {
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
}

.search-box {
    display: flex;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.search-box:focus-within {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

#searchInput {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: #c9d1d9;
    font-family: inherit;
}

#searchInput::placeholder {
    color: #6e7681;
}

.search-btn {
    background: #238636;
    border: none;
    padding: 16px 24px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid #30363d;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: #2ea043;
}

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

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-examples {
    margin-top: 24px;
    text-align: center;
}

.example-section {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.example-section span {
    font-size: 0.8rem;
    color: #8b949e;
    margin-right: 8px;
    white-space: nowrap;
}

.example-btn {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.example-btn:hover {
    border-color: #58a6ff;
    color: #58a6ff;
}

.results-container, .error-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.results-header {
    border-bottom: 1px solid #30363d;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

#resultsTitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 8px;
}

.results-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #8b949e;
}

.search-info {
    margin-top: 12px;
    padding: 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #8b949e;
    text-align: left;
}

.search-info strong {
    color: #c9d1d9;
}

/* Promo Cards Styling */
.promo-header {
    margin-bottom: 20px;
}

.promo-header h2 {
    color: #c9d1d9;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.promo-stats {
    color: #8b949e;
    font-size: 0.85rem;
}

.promo-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    min-height: 48px;
}

.promo-card:hover {
    border-color: #58a6ff;
    background: #262c36;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.promo-code {
    background: #238636;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    min-width: fit-content;
}

.promo-description {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.promo-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-more-btn {
    background: none;
    border: none;
    color: #00ff88;
    cursor: pointer;
    font-size: 0.8em;
    padding: 0;
    margin-left: 0.5em;
    text-decoration: underline;
}

.show-more-btn:hover {
    color: #00cc6a;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.copy-code-btn {
    background: none;
    border: none;
    color: #00ff88;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: rgba(0, 255, 136, 0.1);
}

.copy-code-btn.copied {
    color: #ffffff;
    background: #00ff88;
}

.source-link {
    color: #00ff88;
    text-decoration: none;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.source-link:hover {
    background: rgba(0, 255, 136, 0.1);
}

.source-text {
    color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem;
}

/* Remove all copy button styles */
.copy-btn,
.copy-btn:hover,
.copy-btn.copied,
.promo-grid ~ .copy-btn {
    display: none !important;
}

.error-container {
    background: #161b22;
    border: 1px solid #f85149;
}

.error-content h3 {
    color: #f85149;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.error-content p {
    color: #c9d1d9;
    font-size: 0.9rem;
}

footer {
    margin-top: auto;
    padding: 40px 0 20px 0;
    color: #6e7681;
    font-size: 0.85rem;
    border-top: 1px solid #30363d;
    background: #0d1117;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #00ff41;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-section h4 {
    color: #c9d1d9;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-section p {
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-tagline {
    color: #6e7681;
    font-style: italic;
    font-size: 0.8rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    color: #8b949e;
    margin-bottom: 6px;
    padding-left: 0;
}

.footer-section li::before {
    content: "▸ ";
    color: #00ff41;
    margin-right: 6px;
}

.popular-brands li {
    cursor: pointer;
    transition: color 0.2s ease;
}

.popular-brands li:hover {
    color: #00ff41;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}

.footer-description {
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6e7681;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #searchInput {
        border-bottom: 1px solid #30363d;
    }
    
    .search-btn {
        border-left: none;
    }
    
    .results-container, .error-container {
        padding: 16px;
    }
    
    #resultsTitle {
        font-size: 1.2rem;
    }
    
    .results-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .promo-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .promo-left {
        width: 100%;
        gap: 8px;
    }
    
    .promo-description {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
    
    .promo-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Search Notice */
.search-notice {
    display: none;
    background: #000;
    border: 1px solid #2d5a2d;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: center;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: #4a9f4a;
    position: relative;
    overflow: hidden;
}

.search-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 159, 74, 0.1), transparent);
    animation: searchNoticeShimmer 2s infinite;
}

@keyframes searchNoticeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.search-notice-title {
    color: #6abf6a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.search-notice-text {
    color: #4a9f4a;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.search-notice .terminal-progress {
    margin: 12px 0 0 0;
    color: #6abf6a;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.search-notice .progress-bar {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #2d5a2d;
}

.search-notice .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9f4a, #6abf6a, #4a9f4a);
    background-size: 200% 100%;
    animation: progressFlow 2s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes progressFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Matrix Terminal Animation - Hidden for cleaner UI */
.matrix-terminal {
    display: none !important;
}

/* Matrix Terminal Animation */
.matrix-terminal {
    display: none;
    background: #000;
    border: 1px solid #2d5a2d;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: #4a9f4a;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.matrix-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(74, 159, 74, 0.02) 50%, transparent 100%);
    animation: scanLine 2s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200px); }
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2d5a2d;
    opacity: 0.7;
}

.terminal-dots {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a9f4a;
    opacity: 0.6;
}

.terminal-title {
    font-size: 0.85rem;
    color: #4a9f4a;
    letter-spacing: 1px;
}

.terminal-content {
    position: relative;
    z-index: 1;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    opacity: 0;
    animation: terminalFadeIn 0.5s ease-out forwards;
    font-size: 0.9rem;
    line-height: 1.4;
}

.terminal-prompt {
    color: #6abf6a;
    margin-right: 8px;
    font-weight: 600;
}

.terminal-text {
    color: #4a9f4a;
    flex: 1;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #4a9f4a;
    animation: cursorBlink 1s infinite;
    margin-left: 4px;
}

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

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-progress {
    margin: 12px 0;
    color: #6abf6a;
    font-size: 0.85rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #2d5a2d;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9f4a, #6abf6a, #4a9f4a);
    background-size: 200% 100%;
    animation: progressFlow 2s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes progressFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hide terminal when results are shown */
.results-container:not([style*="display: none"]) ~ .matrix-terminal {
    display: none;
}

/* Minimal Footer */
footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #30363d;
}

.footer-minimal {
    text-align: center;
}

.footer-minimal p {
    font-size: 0.85rem;
    color: #6e7681;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* Social Media Sharing Buttons */
.share-container {
    text-align: center;
    margin: 2rem auto 3rem auto;  /* Increased bottom margin */
    max-width: 900px;
    padding: 0 20px;
}

/* Main Share Container - Always Visible */
.share-container-main {
    margin-top: 40px;
    padding: 24px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-align: center;
}

/* Minimal Share Container - Above Footer */
.share-container-minimal {
    margin-top: 1rem;
}

.share-title {
    font-size: 1rem;
    color: #8b949e;
    margin-bottom: 1rem;
}

.share-title::before {
    content: '// ';
    color: #22c55e;
    opacity: 0.6;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.share-btn.copied {
    color: #00ff88;
}

.share-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Platform-specific colors on hover */
.share-btn.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-btn.facebook:hover {
    border-color: #4267b2;
    background: rgba(66, 103, 178, 0.1);
    color: #4267b2;
}

.share-btn.reddit:hover {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
}

.share-btn.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

.share-btn.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.share-btn.copy-link:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.share-btn.copied .share-icon {
    transform: scale(1.2);
}

/* Mobile responsive for share buttons */
@media (max-width: 768px) {
    .share-container-minimal {
        margin: 30px auto 15px auto;
        padding: 0 15px;
    }
    
    .share-buttons {
        gap: 10px;
        max-width: 300px;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
    }
    
    .share-icon {
        width: 20px;
        height: 20px;
    }
}

.new-search-btn {
    background: #238636;
    border: 1px solid #238636;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.new-search-btn:hover {
    background: #2ea043;
    border-color: #2ea043;
    color: white;
}

/* Override main styles for terms page */
main.markdown-body {
    display: block;
    text-align: left;
    align-items: unset;
    justify-content: unset;
    flex: unset;
}

/* Terms of Service Page Styles */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    text-align: left;
}

.terms-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: left !important;
}

.terms-content section {
    margin: 30px 0;
    text-align: left !important;
}

.terms-content h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: left !important;
}

.terms-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left !important;
}

.terms-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left !important;
    padding-left: 20px;
}

.terms-content ul ul {
    margin-top: 10px;
    margin-left: 20px;
    list-style-type: circle;
    text-align: left !important;
}

.terms-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left !important;
    padding-left: 10px;
}

.terms-content a {
    color: #00ff88;
    text-decoration: none;
    text-align: left !important;
}

.terms-content a:hover {
    text-decoration: underline;
}

/* Footer Links */
.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
} 