/* VulnSite Styles - Basic styling for vulnerable website */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: #ff6b6b;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    margin: 20px 0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

h3 {
    color: #555;
    margin-bottom: 15px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    gap: 15px;
}

.form-group input {
    flex: 1;
}

input, textarea, select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

button {
    background: #ff6b6b;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background: #ff5252;
}

button:active {
    transform: translateY(1px);
}

/* Form sections styling */
.login-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.login-section h2 {
    color: white;
    border-bottom-color: white;
}

.search-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.search-section h2 {
    color: white;
    border-bottom-color: white;
}

.comment-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.comment-section h2 {
    color: white;
    border-bottom-color: white;
}

.upload-section {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.upload-section h2 {
    color: white;
    border-bottom-color: white;
}

.newsletter-section {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.newsletter-section h2 {
    color: white;
    border-bottom-color: white;
}

.redirect-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.xss-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Contact page specific styles */
.contact-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-main h2 {
    color: white;
    border-bottom-color: white;
}

.contact-quick {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.contact-quick h2 {
    color: white;
    border-bottom-color: white;
}

.contact-feedback {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.contact-feedback h2 {
    color: white;
    border-bottom-color: white;
}

.contact-support {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.contact-support h2 {
    color: white;
    border-bottom-color: white;
}

.contact-info {
    background: #f8f9fa;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* Results and output areas */
#searchResults, #commentsList, #xssOutput, #domOutput {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    min-height: 50px;
    border: 1px dashed rgba(255,255,255,0.3);
}

.result {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Error messages */
.error-message {
    color: #ff4444;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    border-left: 4px solid #ff4444;
}

/* Hidden parameters indicator */
input[type="hidden"] {
    display: none !important;
}

/* Debug information */
.debug {
    background: rgba(0,0,0,0.1);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* Vulnerability warnings */
.vuln-warning {
    background: #ffecb3;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.vuln-warning::before {
    content: "⚠️ ";
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 0 10px;
    }
    
    section {
        padding: 20px;
    }
}

/* Animation for interactive elements */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error {
    animation: shake 0.5s ease-in-out;
}

/* Hover effects */
.redirect-section button:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.xss-section button:hover {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    transition: background 0.3s;
}

/* Form validation states */
input:invalid {
    border-color: #ff4444;
}

input:valid {
    border-color: #44ff44;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "...";
    animation: dots 1s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}