/* Steel Logistics B.V. - Complete Stylesheet with Admin Styles - Gray Theme */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, #e9ecef 0%, #495057 100%);
    color: white;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Two-row header layout for admin pages */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-welcome {
    color: white;
    font-size: 0.9rem;
}

.admin-buttons {
    display: flex;
    gap: 0.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Admin Header Extensions */
.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.admin-user span {
    font-size: 0.9rem;
}

.logout-btn, .admin-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover, .admin-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(108, 117, 125, 0.7), rgba(73, 80, 87, 0.7)), 
                url('https://steellogistics.nl/images/homepagesteel.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 94vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: #b2b6bb;
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: #80868d;
    transform: translateY(-3px);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #495057;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 0.0rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.service-card {
    border-left: 5px solid #6c757d;
}

.service-card h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Images */
.hero-image {
    width: 100%;
    height: 530px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Lists */
.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
}

.values-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.3rem;
    margin-top: 0.3rem;
    min-width: 30px;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6c757d;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #b2b6bb;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #80868d;
    transform: translateY(-2px);
}

/* Admin Forms - Jobs and Articles */
.add-article-btn, .add-job-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.add-article-btn:hover, .add-job-btn:hover {
    background: #218838;
}

.article-form, .job-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    display: none;
}

.article-form.show, .job-form.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-textarea {
    height: 250px !important;
}

/* Upload styling */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #6c757d;
    background: #f0f4f8;
}

.upload-area.dragover {
    border-color: #6c757d;
    background: #e8f4fd;
}

.upload-area.uploading {
    border-color: #28a745;
    background: #f0fff4;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #666;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.preview-img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 1rem;
}

.remove-img-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-img-btn:hover {
    background: #c82333;
}

.upload-progress {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.progress-bar {
    background: #28a745;
    height: 20px;
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background: #495057;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #6c757d;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-edit {
    background: #ffc107;
    color: #000;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Articles and Jobs Lists */
.articles-list, .jobs-list {
    display: grid;
    gap: 1.5rem;
}

.article-card, .job-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover, .job-card:hover {
    transform: translateY(-2px);
}

.article-preview, .job-preview {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.article-image, .job-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.article-info h3, .job-info h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.article-meta, .job-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-excerpt, .job-excerpt {
    color: #666;
    line-height: 1.4;
}

.article-actions, .job-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6c757d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Backgrounds */
.bg-light {
    background: #f8f9fa;
}

.bg-white {
    background: white;
}

.bg-primary {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Footer */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #b2b6bb;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Newsletter Styles */
.newsletter-signup {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #e55a2b;
}

/* News Article Styles */
.news-article {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.news-category {
    background: #6c757d;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #6c757d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        height: 80vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    /* Admin Mobile Responsive - Two Row Header */
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .header-top {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .header-bottom {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .admin-welcome {
        font-size: 0.8rem;
        display: none; /* Hide welcome text on mobile */
    }

    .admin-buttons {
        gap: 0.25rem;
    }

    .logout-btn, .admin-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .admin-title {
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .admin-user {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .admin-user span {
        font-size: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .article-preview, .job-preview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-actions, .job-actions {
        flex-direction: row;
        justify-content: center;
    }

    .admin-container {
        margin-top: 140px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .page-header {
        padding: 5rem 0 3rem;
    }

    .section {
        padding: 3rem 0;
    }
}