/* Navigation and cross-page styles */
.nav-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0.5rem 0;
}

.nav-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.nav-breadcrumb a:hover {
    text-decoration: underline;
}

.context-banner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.context-content h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.context-content p {
    color: #533f03;
    margin-bottom: 0.5rem;
}

.context-content code {
    background: rgba(255,255,255,0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.clear-context-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #856404;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-context-btn:hover {
    background: rgba(0,0,0,0.1);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Popup Modal Styles */
.popup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-modal-overlay.show {
    opacity: 1;
}

.popup-modal {
    background: white;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-modal-overlay.show .popup-modal {
    transform: scale(1);
}

.popup-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.popup-icon {
    font-size: 2rem;
}

.popup-title {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255,255,255,0.2);
}

.popup-body {
    padding: 2rem;
}

.popup-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-url {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    word-break: break-all;
}

.popup-options h4 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
}

.option-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.option-content {
    flex: 1;
}

.option-content h5 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.option-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.option-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.secondary-method {
    background: #17a2b8;
    color: white;
}

.secondary-method:hover {
    background: #138496;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.buy-content {
    background: #28a745;
    color: white;
}

.buy-content:hover {
    background: #218838;
    transform: translateY(-2px);
}

.educational {
    background: #6c757d;
    color: white;
}

.educational:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.navigation-link {
    background: #17a2b8;
    color: white;
}

.navigation-link:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

.popup-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.educational-disclaimer {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.4;
}

/* Second Method Interface Styles */
.second-method-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.method-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.method-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.method-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.search-interface {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.platform-selection {
    margin-bottom: 2rem;
}

.selection-label, .username-label {
    display: block;
    margin-bottom: 0.8rem;
    color: #495057;
    font-size: 1.1rem;
}

.website-dropdown {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.website-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.username-input-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.username-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.username-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.username-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .option-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .username-input-container {
        flex-direction: column;
    }
}
