/**
 * ProjectStudenten Divi - Main Styles
 */

/* ==================== BASE STYLES ==================== */
:root {
    --ps-primary: #2563eb;
    --ps-primary-dark: #1e40af;
    --ps-primary-light: #3b82f6;
    --ps-secondary: #64748b;
    --ps-success: #22c55e;
    --ps-danger: #ef4444;
    --ps-warning: #f59e0b;
    --ps-background: #f8fafc;
    --ps-surface: #ffffff;
    --ps-border: #e2e8f0;
    --ps-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==================== SWIPE MODULE ==================== */
.projectstudenten-swipe-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.swipe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.swipe-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--ps-primary);
}

.swipe-header p {
    color: var(--ps-secondary);
    font-size: 1.1rem;
}

.swipe-loading {
    text-align: center;
    padding: 3rem;
}

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

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

.swipe-cards {
    min-height: 500px;
}

.swipe-card {
    background: var(--ps-surface);
    border-radius: 1.5rem;
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.card-urgency {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ps-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--ps-shadow);
}

.card-company {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ps-primary);
}

.card-description {
    color: var(--ps-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-tags .tag {
    background: var(--ps-background);
    color: var(--ps-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-tags .tag:first-child {
    background: rgba(37, 99, 235, 0.1);
    color: var(--ps-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--ps-border);
}

.card-price {
    font-weight: 700;
    color: var(--ps-success);
    font-size: 1.125rem;
}

.card-hours {
    color: var(--ps-secondary);
    font-size: 0.875rem;
}

/* Swipe Actions */
.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.swipe-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--ps-shadow-lg);
    border: none;
    cursor: pointer;
    background: var(--ps-surface);
}

.swipe-btn:hover {
    transform: scale(1.1);
}

.swipe-btn.pass-btn {
    border: 3px solid var(--ps-danger);
    color: var(--ps-danger);
}

.swipe-btn.pass-btn:hover {
    background: var(--ps-danger);
    color: white;
}

.swipe-btn.info-btn {
    border: 3px solid var(--ps-secondary);
    color: var(--ps-secondary);
}

.swipe-btn.info-btn:hover {
    background: var(--ps-secondary);
    color: white;
}

.swipe-btn.like-btn {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    color: white;
}

.swipe-btn.like-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Empty States */
.no-projects,
.no-matches {
    text-align: center;
    padding: 3rem;
}

.no-projects-icon,
.no-matches-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-projects h3,
.no-matches h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-projects p,
.no-matches p {
    color: var(--ps-secondary);
    margin-bottom: 1.5rem;
}

.swipe-empty {
    text-align: center;
    padding: 3rem;
}

/* ==================== MATCHES MODULE ==================== */
.projectstudenten-matches-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.matches-header {
    text-align: center;
    margin-bottom: 2rem;
}

.matches-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--ps-primary);
}

.matches-header p {
    color: var(--ps-secondary);
    font-size: 1.1rem;
}

.matches-grid {
    display: grid;
    gap: 1.5rem;
}

.match-card {
    background: var(--ps-surface);
    border-radius: 1rem;
    box-shadow: var(--ps-shadow);
    overflow: hidden;
}

.match-header {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-status {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ps-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.match-company {
    font-size: 0.875rem;
    opacity: 0.9;
}

.match-body {
    padding: 1.5rem;
}

.match-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ps-primary);
}

.match-description {
    color: var(--ps-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--ps-border);
}

.match-price {
    font-weight: 700;
    color: var(--ps-success);
    font-size: 1.125rem;
}

.match-hours {
    color: var(--ps-secondary);
    font-size: 0.875rem;
}

/* ==================== AUTH MODULE ==================== */
.projectstudenten-auth-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 1.5rem;
}

.auth-section {
    background: var(--ps-surface);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--ps-shadow-lg);
}

.auth-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--ps-primary);
}

.auth-section > p {
    color: var(--ps-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 600;
    color: var(--ps-primary);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--ps-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--ps-primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--ps-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ps-border);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-social-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ps-surface);
    border: 2px solid var(--ps-border);
    color: var(--ps-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.auth-social-btn:hover {
    border-color: var(--ps-primary);
    background: var(--ps-background);
}

.auth-switch {
    text-align: center;
    color: var(--ps-secondary);
    margin-top: 1.5rem;
}

.auth-switch a {
    color: var(--ps-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-logged-in {
    background: var(--ps-surface);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--ps-shadow-lg);
    text-align: center;
}

/* ==================== MATCH NOTIFICATION ==================== */
.projectstudenten-match-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--ps-surface);
    border-radius: 1.5rem;
    box-shadow: var(--ps-shadow-lg);
    padding: 2rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.projectstudenten-match-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.match-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.match-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ps-primary);
}

.match-content p {
    color: var(--ps-secondary);
    margin-bottom: 1.5rem;
}

/* ==================== ERROR & SUCCESS MESSAGES ==================== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ps-danger);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    color: var(--ps-success);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .swipe-header h2,
    .matches-header h2 {
        font-size: 1.5rem;
    }
    
    .swipe-actions {
        gap: 1rem;
    }
    
    .swipe-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .projectstudenten-auth-container {
        padding: 1rem;
    }
    
    .auth-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .swipe-header h2,
    .matches-header h2 {
        font-size: 1.25rem;
    }
    
    .swipe-card,
    .match-card {
        border-radius: 1rem;
    }
    
    .swipe-btn {
        width: 3rem;
        height: 3rem;
    }
}