/*
Theme Name: BDO System Theme
Theme URI: https://example.com
Author: Twoje Imię
Author URI: https://example.com
Description: Szablon WordPress z systemem logowania i BDO oraz integracją GUS BIR API - wersja 2.5 z walidacją AJAX API BDO
Version: 2.6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdo-theme
*/

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header i nawigacja */
.site-header {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: #34495e;
    border-radius: 4px;
}

/* Główna zawartość */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-area {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 500px;
}

/* Formularze */
.login-form, .register-form, .company-data-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px 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: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input.error {
    border-color: #e74c3c;
}

/* Komunikaty błędów walidacji */
.validation-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-block {
    width: 100%;
}

/* System BDO - obrazki */
.bdo-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.bdo-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.bdo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bdo-box img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.bdo-box h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.bdo-box a {
    text-decoration: none;
    color: inherit;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Wiadomości */
.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.message.error {
    background-color: #e74c3c;
    color: #fff;
}

.message.success {
    background-color: #2ecc71;
    color: #fff;
}

.message.info {
    background-color: #3498db;
    color: #fff;
}

/* Przyciski */
.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Formularz integracji */
.integration-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.integration-form h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.integration-form small {
    font-size: 13px;
    line-height: 1.4;
}

/* Wynik walidacji API */
#validation-result {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

#validation-result code {
    display: block;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
    word-break: break-all;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

/* Strona główna */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Responsywność */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .bdo-system-grid {
        grid-template-columns: 1fr;
    }
}
