/* style.css - Modern, professional styles for Indiecruit */

:root {
    --primary: #156185; /* Primary color */
    --accent: #D2592E; /* Secondary color */
    --secondary: #64748b;
    --success: #D2592E; /* Using secondary for success */
    --danger: #dc2626;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1.4rem 2rem;
    box-shadow: var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.logo {
    height: 85px;
    margin-right: 0;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.job-board {
    margin-bottom: 3rem;
}

.job-board h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.job-board h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}

#jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.job-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.job-item h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.25rem;
}

.job-item .salary {
    color: var(--accent);
    font-weight: 600;
    margin: 0.5rem 0;
}

.job-item .location {
    color: var(--primary);
    font-weight: 500;
    margin: 0.5rem 0;
}

.job-item .requirements {
    color: var(--secondary);
    margin: 0.5rem 0 1rem 0;
}

.job-item .requirements ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.job-item .requirements li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.job-item p {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.apply-btn {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
    width: 100%;
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.apply-btn:hover {
    background: #0056b3;
}

/* Application Form */
.application-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    position: relative;
}

.application-form h2 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.job-description-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.job-description-section h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.job-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-meta .job-location,
.job-meta .job-salary {
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.job-description-section #job-description-content {
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-requirements-full {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.job-requirements-full h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.job-requirements-full ul {
    margin: 0;
    padding-left: 1.5rem;
}

.job-requirements-full li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #c82333;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary);
    font-weight: 300;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

form input, form textarea, form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background: #0056b3;
}

/* Admin styles */
.admin-login {
    max-width: 400px;
    margin: 5rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-login h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.admin-login input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-login button {
    width: 48%;
    margin-right: 4%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-login button:last-child {
    margin-right: 0;
}

.admin-login button:hover {
    background: #0056b3;
}

.admin-dashboard main {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.admin-dashboard section {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-dashboard h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.admin-dashboard ul {
    list-style: none;
    padding: 0;
}

.admin-dashboard li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.admin-dashboard li:last-child {
    border-bottom: none;
}

.admin-dashboard a {
    color: var(--primary);
    text-decoration: none;
}

.admin-dashboard a:hover {
    text-decoration: underline;
}

.admin-dashboard button {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background 0.3s ease;
}

.admin-dashboard button:hover {
    background: #c82333;
}

footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 70px;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #b8451f;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    main {
        padding: 1.5rem;
    }

    .job-board h2 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 1rem;
    }

    .logo {
        height: 60px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    /* Main content */
    main {
        padding: 1rem;
    }

    /* Hero section */
    .hero {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 1.56rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.96rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Job board */
    .job-board h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    #jobs-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-item {
        padding: 1.25rem;
        min-height: 280px;
    }

    .job-item h3 {
        font-size: 1.1rem;
    }

    .job-item .salary,
    .job-item .location {
        font-size: 0.9rem;
    }

    .job-item p {
        font-size: 0.9rem;
    }

    .apply-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Application page */
    .application-page .container {
        padding: 1.5rem;
    }

    .application-page h1 {
        font-size: 2rem;
    }

    .job-description-section {
        padding: 1.25rem;
    }

    .job-description-section h2,
    .job-description-section h3 {
        font-size: 1.2rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-meta p {
        font-size: 0.9rem;
    }

    /* Form elements */
    form input,
    form textarea,
    form select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    button[type="submit"],
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Admin dashboard */
    .admin-dashboard main {
        flex-direction: column;
        gap: 1.5rem;
    }

    .admin-dashboard section {
        padding: 1.25rem;
    }

    .admin-dashboard h2 {
        font-size: 1.4rem;
    }

    .admin-login {
        margin: 2rem auto;
        padding: 1.5rem;
        max-width: 90%;
    }

    .admin-login h2 {
        font-size: 1.5rem;
    }

    .admin-login input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .admin-login button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    header {
        padding: 0.8rem;
    }

    .logo {
        height: 50px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    /* Hero section */
    .hero {
        height: 40vh;
    }

    .hero-content h2 {
        font-size: 1.43rem;
        margin-bottom: 0.6rem;
    }

    .hero-content p {
        font-size: 0.96rem;
        margin-bottom: 1.2rem;
    }

    .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Job board */
    .job-board h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .job-item {
        padding: 1rem;
        min-height: 260px;
    }

    .job-item h3 {
        font-size: 1rem;
    }

    .job-item .salary,
    .job-item .location {
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }

    .job-item p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .job-item .requirements ul {
        padding-left: 1.2rem;
    }

    .job-item .requirements li {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .apply-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Application page */
    .application-page .container {
        padding: 1.25rem;
    }

    .application-page h1 {
        font-size: 1.8rem;
    }

    .job-description-section {
        padding: 1rem;
    }

    .job-description-section h2,
    .job-description-section h3 {
        font-size: 1.1rem;
    }

    .job-description-content p {
        font-size: 0.9rem;
    }

    .job-requirements-full li {
        font-size: 0.9rem;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    form input,
    form textarea,
    form select {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    button[type="submit"],
    .submit-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Admin dashboard */
    .admin-dashboard section {
        padding: 1rem;
    }

    .admin-dashboard h2 {
        font-size: 1.2rem;
    }

    .admin-dashboard li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }

    .admin-dashboard button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .admin-login {
        margin: 1.5rem auto;
        padding: 1.25rem;
    }

    .admin-login h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .admin-login input {
        padding: 0.65rem;
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }

    .admin-login button {
        padding: 0.65rem;
        font-size: 0.85rem;
        width: 47%;
        margin-right: 6%;
    }

    /* Footer */
    footer {
        padding: 1.25rem 0.8rem;
    }

    .footer-logo-img {
        height: 45px;
    }

    footer p {
        font-size: 0.85rem;
        margin: 0.4rem 0;
    }
}

@media (max-width: 360px) {
    /* Very small screens */
    header {
        padding: 0.6rem;
    }

    .logo {
        height: 40px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    header p {
        font-size: 0.8rem;
    }

    main {
        padding: 0.8rem;
    }

    /* Hero section */
    .hero {
        height: 35vh;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.84rem;
    }

    .cta-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Job board */
    .job-board h2 {
        font-size: 1.2rem;
    }

    .job-item {
        padding: 0.8rem;
    }

    .job-item h3 {
        font-size: 0.95rem;
    }

    .apply-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Application page */
    .application-page .container {
        padding: 1rem;
    }

    .application-page h1 {
        font-size: 1.6rem;
    }

    .job-description-section {
        padding: 0.8rem;
    }

    /* Admin login */
    .admin-login {
        padding: 1rem;
    }

    .admin-login button {
        width: 46%;
        margin-right: 8%;
        font-size: 0.8rem;
    }

    /* Footer */
    footer {
        padding: 1rem 0.6rem;
    }

    .footer-logo-img {
        height: 40px;
    }
}

/* Application Page Styles */
.application-page {
    max-width: 800px;
    margin: 0 auto;
}

.application-page .container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.application-page h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.job-description-section {
    background: linear-gradient(135deg, rgba(21, 97, 133, 0.05) 0%, rgba(210, 82, 46, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
}

.job-description-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.job-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-meta p {
    margin: 0;
    font-weight: 500;
    color: var(--primary);
}

.job-description-content {
    margin-bottom: 2rem;
}

.job-description-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.job-description-content p {
    line-height: 1.6;
    color: var(--secondary);
}

.job-requirements-full h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.job-requirements-full ul {
    margin: 0;
    padding-left: 1.5rem;
}

.job-requirements-full li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.application-form {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(21, 97, 133, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.application-form h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-btn {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}