/* GAABlogs Main Styles */

/* Custom Tailwind Colors */
:root {
    --gaa-green: #169b62;
    --gaa-orange: #ff883e;
    --gaa-blue: #0ea5e9;
}

/* Mobile-first document foundation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 0;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

/* Prevent iOS form zoom and provide comfortable touch targets by default. */
input,
select,
textarea {
    font-size: 1rem;
}

button,
a.btn-primary,
a.btn-secondary,
input[type="submit"] {
    min-height: 2.75rem;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Feed Card Hover Effects */
.feed-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--gaa-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu Transitions */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms, transform 200ms;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 200ms, transform 200ms;
}

/* Button Hover Effects */
.btn-primary {
    background-color: var(--gaa-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #15803d;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gaa-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Avatar Styles */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--gaa-green), var(--gaa-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(22, 155, 98, 0.1);
    color: var(--gaa-green);
}

.badge-warning {
    background-color: rgba(255, 136, 62, 0.1);
    color: var(--gaa-orange);
}

.badge-info {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--gaa-blue);
}

/* Responsive utilities: mobile is the default. */
.mobile-hidden {
    display: none;
}

@media (min-width: 40.0625rem) {
    .mobile-hidden {
        display: initial;
    }

    .desktop-hidden {
        display: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
}
