/**
 * Pull A Daisy - Styles
 * Save as: assets/style.css
 */

.pad-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.pad-header {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pad-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pad-icon {
    width: 32px;
    height: 32px;
    color: #9333ea;
}

.pad-header h1 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
}

.pad-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #6b7280;
}

.pad-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.pad-admin-badge {
    background: #dae7bd;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
}

/* Submit Section */
.pad-submit-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pad-submit-section h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #555555;
}

.pad-form textarea {
    width: 100%;
    padding: 12px;
    color:#777;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.pad-form textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.pad-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    min-height: 20px;
}

.pad-char-count {
    font-size: .7rem;
    color: #999999;
}

.pad-error {
    font-size: 14px;
    color: #dc2626;
}

/* Buttons */
.pad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pad-btn-primary {
    background: #dae7bd;
    color: #fff;
    width: 100%;
    margin-top: 16px;
        padding: 12px 24px;
    justify-content: center;
}

.pad-btn-primary:hover {
    /*background: #7e22ce;*/
}

.pad-btn-primary.pad-btn-disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.pad-btn-secondary {
    background: #f3f4f6;
    color: #999;
        font-size: .7rem;
            padding: 7px 14px;
}

.pad-btn-secondary:hover {
    background: #e5e7eb;
}

.pad-btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Poem Section */
.pad-poem-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pad-poem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pad-poem-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.pad-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
div.pad-controls {
    float:right !important;
}
/* Lines */
.pad-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pad-line {
    padding: 4px 0;
}

.pad-line-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.pad-line-text {
    flex: 1;
    margin: 0;
    color: #1f2937;
    line-height: 1.6;
    text-transform: lowercase;
}

.pad-line-hidden .pad-line-text {
    opacity: 0.5;
    font-style: italic;
}

.pad-line-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pad-attribution {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.pad-author {
    font-weight: 500;
}

.pad-time {
    margin-top: 2px;
}

/* Admin Controls */
.pad-admin-controls {
    display: flex;
    gap: 4px;
}

.pad-btn-hide,
.pad-btn-show,
.pad-btn-flag,
.pad-btn-delete-icon {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pad-btn-hide {
    background: #fef3c7;
    color: #92400e;
}

.pad-btn-hide:hover {
    background: #fde68a;
}

.pad-btn-show {
    background: #d1fae5;
    color: #065f46;
}

.pad-btn-show:hover {
    background: #a7f3d0;
}

.pad-btn-flag {
    background: #fed7aa;
    color: #9a3412;
}

.pad-btn-flag:hover,
.pad-btn-flag.pad-flagged {
    background: #fdba74;
}

.pad-btn-delete-icon {
    background: #fecaca;
    color: #991b1b;
}

.pad-btn-delete-icon:hover {
    background: #fca5a5;
}

/* Modal */
.pad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pad-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.pad-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    z-index: 10000;
}

.pad-modal-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1f2937;
}

.pad-modal-content p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

.pad-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pad-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.pad-btn-cancel:hover {
    background: #d1d5db;
}

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

.pad-btn-delete:hover {
    background: #b91c1c;
}

/* Empty state & Loading */
.pad-empty,
.pad-loading {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}

.pad-login-required {
    background: white;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pad-login-required a {
    color: #dae7bd;
    text-decoration: none;
    font-weight: 500;
}

.pad-login-required a:hover {
    text-decoration: underline;
}

/* Two Column Layout for Desktop */
@media (min-width: 769px) {
    .pad-container {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }
    
    .pad-left-column {
        width: 30%;
        flex-shrink: 0;
    }
    
    .pad-right-column {
        width: 70%;
        flex: 1;
    }
}

/* Mobile: Stack columns */
@media (max-width: 768px) {
    .pad-container {
        display: block;
    }
    
    .pad-left-column,
    .pad-right-column {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pad-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pad-poem-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pad-controls {
        width: 100%;
    }
    
    .pad-btn-secondary {
        flex: 1;
    }
    
    .pad-line-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .pad-attribution {
        text-align: left;
    }
}

/* Login Prompt for non-logged in users */
.pad-login-prompt {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.pad-login-prompt p {
    margin: 0;
    color: #6b7280;
}

.pad-login-prompt a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
}

.pad-login-prompt a:hover {
    text-decoration: underline;
}
