/* KAV Team Blog - Main Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

/* Button System - Centralized */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    color: white;
}

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

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

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

/* Button Sizes */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Special Button Styles */
.back-link {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.logout-btn {
    background: #0066cc;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.logout-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Responsive Design */
@media (max-width: 768px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .btn-small {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .btn-large {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .desktop-header-actions {
        display: none;
    }
}

/* Floating Search Tab */
.floating-search-tab {
    position: fixed;
    top: 50%;
    right: -210px;
    transform: translateY(-50%);
    width: 250px;
    background: #004c93;
    color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 999;
    overflow: hidden;
}

.floating-search-tab:hover {
    right: 0;
}

.search-tab-trigger {
    position: absolute;
    left: -45px;
    top: 0;
    bottom: 0;
    width: 45px;
    background: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab-trigger:hover {
    background: #004c93;
}

.search-tab-icon {
    font-size: 1.2rem;
    color: white;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.floating-search-tab:hover .search-tab-icon {
    transform: rotate(180deg);
}

.search-tab-content {
    padding: 1.5rem;
}

.search-tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.search-tab-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-tab-input {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.search-tab-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-tab-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.search-tab-shortcuts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.search-shortcut {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.search-shortcut:hover {
    color: white;
    text-decoration: none;
}

/* Mobile - Hide floating search tab */
@media (max-width: 768px) {
    .floating-search-tab {
        display: none;
    }
}