/**
 * Repozytorium Systemu Płatności - Style (LMS.org.pl inspired)
 */

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

body {
    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* Header - styl LMS */
.main-header {
    background: #336600;
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #2d5500;
}

.main-header h1 {
    font-size: 18pt;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: white;
}

.main-header h1::before {
    content: "[[ ";
    font-weight: normal;
}

.main-header h1::after {
    content: " ]]";
    font-weight: normal;
}

.main-header p {
    font-size: 10pt;
    margin: 0;
    color: #ddd;
}

/* Menu nawigacyjne (opcjonalne) */
.nav-menu {
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    padding: 5px 20px;
    margin-bottom: 15px;
}

.nav-menu a {
    color: #336600;
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
}

.nav-menu a:hover {
    color: #2d5500;
    text-decoration: underline;
}

/* Karty - prosty styl */
.card {
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
}

.card h2 {
    color: #336600;
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.card h3 {
    color: #336600;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 10px;
}

/* Info boxes - wersja */
.version-info {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.info-box {
    display: table-cell;
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

.info-box h3 {
    font-size: 9pt;
    color: #666;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    font-weight: bold;
}

.info-box p {
    font-size: 14pt;
    color: #336600;
    font-weight: bold;
    margin: 0;
}

/* API Endpoints */
.api-endpoint {
    background: #f9f9f9;
    padding: 8px;
    border-left: 3px solid #336600;
    font-family: 'Courier New', Courier, monospace;
    margin: 10px 0;
    font-size: 9pt;
    overflow-x: auto;
}

.api-example {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    overflow-x: auto;
}

.api-example pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 9pt;
    line-height: 1.4;
    color: #000;
}

/* Przyciski - styl prosty */
.btn {
    display: inline-block;
    padding: 5px 15px;
    background: #336600;
    color: white;
    text-decoration: none;
    border: 1px solid #2d5500;
    margin: 3px;
    font-size: 10pt;
}

.btn:hover {
    background: #2d5500;
    color: white;
}

/* Changelog entries */
.changelog-entry {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #336600;
}

.changelog-entry h4 {
    color: #336600;
    margin-bottom: 8px;
    font-size: 11pt;
    font-weight: bold;
}

.changelog-entry ul {
    margin-left: 20px;
    list-style-type: disc;
}

.changelog-entry li {
    margin: 3px 0;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 15px;
    color: #666;
    margin-top: 30px;
    border-top: 1px solid #ccc;
    font-size: 9pt;
}

.main-footer a {
    color: #336600;
    text-decoration: none;
}

.main-footer a:hover {
    color: #2d5500;
    text-decoration: underline;
}

/* Code inline */
code {
    background: #f5f5f5;
    padding: 2px 4px;
    border: 1px solid #ddd;
    font-family: 'Courier New', Courier, monospace;
    font-size: 9pt;
}

/* Linki */
a {
    color: #336600;
    text-decoration: none;
}

a:hover {
    color: #2d5500;
    text-decoration: underline;
}

/* Listy */
ul {
    line-height: 1.6;
}

/* Tabele */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

table td, table th {
    padding: 5px;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Responsive - podstawowy */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }

    .main-header {
        padding: 10px;
    }

    .main-header h1 {
        font-size: 14pt;
    }

    .card {
        padding: 10px;
    }

    .version-info {
        display: block;
    }

    .info-box {
        display: block;
        margin-bottom: 10px;
    }

    .api-endpoint,
    .api-example {
        font-size: 8pt;
        padding: 5px;
    }
}

/* Dodatkowe style dla czytelności */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.bold { font-weight: bold; }
.italic { font-style: italic; }

/* Separatory */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 15px 0;
}
