/* Question2Answer Style - KazaData */

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

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 13px;
}

/* Container */
.qa-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.qa-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.qa-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.qa-search {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.qa-search-field {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.qa-search-button {
    padding: 6px 15px;
    background: #2c5aa0;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.qa-search-button:hover {
    background: #234a87;
}

/* Navigation */
.qa-nav {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.qa-nav-link {
    color: #2c5aa0;
    text-decoration: none;
}

.qa-nav-link:hover {
    text-decoration: underline;
}

.qa-nav-separator {
    margin: 0 5px;
    color: #999;
}

.qa-nav-main {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.qa-nav-main-list {
    display: flex;
    gap: 0;
}

.qa-nav-main-link {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    display: block;
}

.qa-nav-main-link:hover {
    background: #f5f5f5;
}

.qa-nav-main-selected {
    border-bottom-color: #2c5aa0;
    color: #2c5aa0;
    font-weight: bold;
}

/* Main Content */
.qa-main {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

/* Question List */
.qa-q-list {
    border-top: 1px solid #e0e0e0;
}

.qa-q-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.qa-q-list-item:hover {
    background: #fafafa;
}

.qa-q-item-stats {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.qa-vote-count-mini,
.qa-view-count-mini {
    min-width: 45px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

.qa-a-count {
    min-width: 45px;
    text-align: center;
}

.qa-a-count-data {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    display: inline-block;
    min-width: 40px;
}

.qa-a-count-selected {
    background: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
}

.qa-a-count-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.qa-q-item-main {
    flex: 1;
}

.qa-q-item-title-link {
    font-size: 15px;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.qa-q-item-title-link:hover {
    color: #1a3d6d;
}

.qa-q-item-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qa-q-item-meta-tags {
    display: flex;
    gap: 5px;
}

.qa-tag-link {
    background: #e1ecf4;
    color: #39739d;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
}

.qa-tag-link:hover {
    background: #d1e5f1;
}

/* Question View */
.qa-question {
    margin-bottom: 30px;
}

.qa-q-view {
    display: flex;
    gap: 20px;
}

.qa-q-item-stats .qa-voting,
.qa-q-item-stats .qa-a-count,
.qa-q-item-stats .qa-view-count {
    text-align: center;
    margin-bottom: 15px;
}

.qa-vote-count {
    font-size: 28px;
    font-weight: bold;
    color: #666;
}

.qa-vote-label,
.qa-view-count-label {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.qa-q-item-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.qa-q-item-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.qa-q-view-tags {
    margin: 20px 0;
}

.qa-q-view-who {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    display: inline-block;
}

.qa-q-view-who-label {
    color: #999;
}

.qa-q-view-who-username {
    color: #2c5aa0;
    font-weight: bold;
}

.qa-q-view-who-when {
    color: #999;
    margin-right: 10px;
}

/* Answer List */
.qa-a-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.qa-a-list-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: normal;
}

.qa-a-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.qa-a-selected {
    background: #f9fff9;
    padding: 20px;
    border: 1px solid #5cb85c;
    border-radius: 3px;
}

.qa-a-item-stats .qa-voting {
    text-align: center;
    margin-bottom: 15px;
}

.qa-a-selected-icon {
    background: #5cb85c;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
}

.qa-a-item-main {
    flex: 1;
}

.qa-a-item-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.qa-a-item-who {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    display: inline-block;
}

.qa-a-item-who-label {
    color: #999;
}

.qa-a-item-who-username {
    color: #2c5aa0;
    font-weight: bold;
}

.qa-a-item-who-when {
    color: #999;
    margin-right: 10px;
}

/* Related Questions */
.qa-related {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.qa-related-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Sections */
.qa-section {
    margin-bottom: 40px;
}

.qa-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c5aa0;
    font-weight: normal;
}

/* Tag Sections */
.qa-tag-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.qa-tag-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 3px;
}

.qa-tag-name {
    font-size: 20px;
    color: #2c5aa0;
    font-weight: bold;
}

.qa-tag-count {
    font-size: 14px;
    color: #666;
    background: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

/* View Count */
.qa-view-count-data {
    font-size: 16px;
    font-weight: bold;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .qa-container {
        padding: 0 10px;
    }

    .qa-main {
        padding: 10px;
    }

    .qa-q-view {
        flex-direction: column;
    }

    .qa-q-item-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .qa-a-item {
        flex-direction: column;
    }

    .qa-q-item-title {
        font-size: 18px;
    }

    .qa-q-list-item {
        flex-direction: column;
        gap: 10px;
    }

    .qa-q-item-stats {
        justify-content: flex-start;
    }

    .qa-tag-section-title {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {

    .qa-header,
    .qa-nav-main,
    .qa-search {
        display: none;
    }

    body {
        background: #fff;
    }

    .qa-main {
        border: none;
    }
}

/* Footer */
.qa-footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 40px;
    padding: 30px 0 20px;
    border-top: 4px solid #2c5aa0;
}

.qa-footer-content {
    text-align: center;
}

.qa-footer-text {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 20px;
}

.qa-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.qa-footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.qa-footer-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.qa-footer-copyright {
    font-size: 12px;
    color: #95a5a6;
    padding-top: 15px;
    border-top: 1px solid #34495e;
}

.qa-footer-copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .qa-footer {
        padding: 20px 0 15px;
    }

    .qa-footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .qa-footer-link {
        font-size: 13px;
    }

    .qa-footer-copyright {
        font-size: 11px;
    }
}

@media print {
    .qa-footer {
        display: none;
    }
}